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

Method and

output/java_guava/1.4.13/Predicates.java:108–110  ·  view source on GitHub ↗

Returns a predicate that evaluates to true if each of its components evaluates to true. The components are evaluated in order, and evaluation will be "short-circuited" as soon as a false predicate is found. It defensively copies the iterable passed in, so future changes to it won't a

(Iterable<? extends Predicate<? super T>> components)

Source from the content-addressed store, hash-verified

106
107
108 public static <T> Predicate<T> and(Iterable<? extends Predicate<? super T>> components) {
109 return new AndPredicate<T>(defensiveCopy(components));
110 }
111
112 /**
113 * Returns a predicate that evaluates to {@code true} if each of its components evaluates to

Callers

nothing calls this directly

Calls 3

defensiveCopyMethod · 0.95
asListMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected