code: public static boolean matches(Class superclassOrIntf, Class otherclass) {
      return isSubclass(superclassOrIntf, otherclass) || hasInterface(superclassOrIntf, otherclass);
    }
docs: Checks whether the "otherclass" is a subclass of the given "superclassOrIntf"
  or whether it implements "superclassOrIntf".
  
  @param superclassOrIntf      the superclass/interface to check against
  @param otherclass            this class is checked whether it is a subclass
  of the the superclass
  @return                      TRUE if "otherclass" is a true subclass or implements the interface