Returns a predicate that evaluates to true if the object being tested is an instance of the given class. If the object being tested is null this predicate evaluates to false. If you want to filter an Iterable to narrow its type, consider using {@link com.google.co
(Class<?> clazz)
| 199 | */ |
| 200 | |
| 201 | @GwtIncompatible // Class.isInstance |
| 202 | public static Predicate<Object> instanceOf(Class<?> clazz) { |
| 203 | return new InstanceOfPredicate(clazz); |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * Returns a predicate that evaluates to {@code true} if the class being tested is assignable |