/** * Creates a Predicate that checks if the object passed in is of * a particular type, using instanceof. A <code>null</code> input * object will return <code>false</code>. * * @param type the type to check for, may not be null * @return the predicate * @throws NullPointerException if the class is null * @see InstanceofPredicate */ public static Predicate<Object> instanceofPredicate(final Class<?> type) { return InstanceofPredicate.instanceOfPredicate(type); }