public Term getTerm(String name) {
        for (Term term : this.terms) {
            if (name.equals(term.getName())) {
                return term;
            }
        }
        return null;
    }
public Term getTerm ( String name ) { for ( Term term : this . terms ) { if ( name . equals ( term . getName ( ) ) ) { return term ; } } return null ; }
Gets the term of the given name.

@param name is the name of the term to retrieve
@return the term of the given name