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

Method equalTo

output/java_guava/1.4.16/Predicates.java:183–185  ·  view source on GitHub ↗

Returns a predicate that evaluates to true if the object being tested equals() the given target or both are null.

(@Nullable T target)

Source from the content-addressed store, hash-verified

181
182
183 public static <T> Predicate<T> equalTo(@Nullable T target) {
184 return (target == null) ? Predicates.<T>isNull() : new IsEqualToPredicate<T>(target);
185 }
186
187 /**
188 * Returns a predicate that evaluates to {@code true} if the object being tested is an instance of

Callers 6

filterUpperBoundsMethod · 0.95
removeMethod · 0.45
containsMethod · 0.45
frequencyMethod · 0.45
removeMethod · 0.45
checkHealthyMethod · 0.45

Calls 1

isNullMethod · 0.95

Tested by

no test coverage detected