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

Method equalTo

corpus/java/training/guava/base/Predicates.java:163–165  ·  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

161 * the given target or both are null.
162 */
163 public static <T> Predicate<T> equalTo(@Nullable T target) {
164 return (target == null) ? Predicates.<T>isNull() : new IsEqualToPredicate<T>(target);
165 }
166
167 /**
168 * 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