MCPcopy Create free account
hub / github.com/antlr/codebuff / instanceOf

Method instanceOf

output/java_guava/1.4.18/Predicates.java:201–204  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

filterMethod · 0.45
toStringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected