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

Method or

output/java_guava/1.4.18/Predicates.java:148–150  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

146
147
148 public static <T> Predicate<T> or(Iterable<? extends Predicate<? super T>> components) {
149 return new OrPredicate<T>(defensiveCopy(components));
150 }
151
152 /**
153 * Returns a predicate that evaluates to {@code true} if any one 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