public static boolean isTypeOrSubTypeOf ( Type subType , Type superType ) { Class < ? > sub = getRawClass ( subType ) ; Class < ? > sup = getRawClass ( superType ) ; return sup . isAssignableFrom ( sub ) ; }
Determines if a type is the same or a subtype for another type .