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

Method in

corpus/java/training/guava/base/Predicates.java:238–240  ·  view source on GitHub ↗

Returns a predicate that evaluates to true if the object reference being tested is a member of the given collection. It does not defensively copy the collection passed in, so future changes to it will alter the behavior of the predicate. This method can technically accept any {@code Coll

(Collection<? extends T> target)

Source from the content-addressed store, hash-verified

236 * @param target the collection that may contain the function input
237 */
238 public static <T> Predicate<T> in(Collection<? extends T> target) {
239 return new InPredicate<T>(target);
240 }
241
242 /**
243 * Returns the composition of a function and a predicate. For every {@code x}, the generated

Callers 15

removeAllMethod · 0.95
retainAllMethod · 0.95
removeAllMethod · 0.95
retainAllMethod · 0.95
containsAllImplMethod · 0.95
intersectionMethod · 0.95
differenceMethod · 0.95
removeAllMethod · 0.45
retainAllMethod · 0.45
removeAllMethod · 0.45
retainAllMethod · 0.45
removeAllMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected