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

Method in

output/java_guava/1.4.16/Predicates.java:263–265  ·  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

261
262
263 public static <T> Predicate<T> in(Collection<? extends T> target) {
264 return new InPredicate<T>(target);
265 }
266
267 /**
268 * 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