public boolean hasItemClass(Class<?> theClass) {
        return getItemClass()==theClass;
    }
Returns true if the class corresponding to this type is the given class
container-search/src/main/java/com/yahoo/prelude/query/TermType.java