public static boolean isAssignableTo ( final String classInternalName , final Class < ? > type ) { Objects . requireNonNull ( classInternalName , "classInternalName" ) ; Objects . requireNonNull ( type , "type" ) ; final Class < ? > c = CACHE . loadClass ( classInternalName ) ; //final Class<?> c = getClassForInternalName(classInternalName); return type . isAssignableFrom ( c ) ; }
Determines whether the class with the given descriptor is assignable to the given type .