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

Method any

corpus/java/training/guava/collect/Iterables.java:605–607  ·  view source on GitHub ↗

Returns true if any element in iterable satisfies the predicate.

(Iterable<T> iterable, Predicate<? super T> predicate)

Source from the content-addressed store, hash-verified

603 * Returns {@code true} if any element in {@code iterable} satisfies the predicate.
604 */
605 public static <T> boolean any(Iterable<T> iterable, Predicate<? super T> predicate) {
606 return Iterators.any(iterable.iterator(), predicate);
607 }
608
609 /**
610 * Returns {@code true} if every element in {@code iterable} satisfies the

Callers 3

isEmptyMethod · 0.95
isEmptyMethod · 0.95
anyMatchMethod · 0.95

Calls 2

anyMethod · 0.95
iteratorMethod · 0.65

Tested by

no test coverage detected