public static boolean isInstanceOf(final Class type,final Object obj){
  return (type != null && type.isInstance(obj));
}

public static boolean isInstanceOf ( final Class type , final Object obj ) { return ( type != null && type . isInstance ( obj ) ) ; }
determines whether the specified object parameter is an instance of , or is assignment - compatible with the given class type . note , this method is null - safe for both class and object value references . < p / >
