@ GwtIncompatible ( "incompatible method" ) public static void isInstanceOf ( final Class < ? > type , final Object obj ) { // TODO when breaking BC, consider returning obj if ( ! type . isInstance ( obj ) ) { throw new IllegalArgumentException ( StringUtils . simpleFormat ( DEFAULT_IS_INSTANCE_OF_EX_MESSAGE , type . getName ( ) , obj == null ? "null" : obj . getClass ( ) . getName ( ) ) ) ; } }
Validates that the argument is an instance of the specified class if not throws an exception .