@Override
    public boolean equals(Object o) {
        if ( ! (o instanceof TermType)) return false;

        TermType other = (TermType) o;
        return name.equals(other.name);
    }
Returns an instance of the class corresponding to the given type, AndItem
if this is the DEFAULT type

@throws RuntimeException if an instance could not be created
container-search/src/main/java/com/yahoo/prelude/query/TermType.java