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

Method all

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

Returns true if every element in iterable satisfies the predicate. If iterable is empty, true is returned.

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

Source from the content-addressed store, hash-verified

611 * predicate. If {@code iterable} is empty, {@code true} is returned.
612 */
613 public static <T> boolean all(Iterable<T> iterable, Predicate<? super T> predicate) {
614 return Iterators.all(iterable.iterator(), predicate);
615 }
616
617 /**
618 * Returns the first element in {@code iterable} that satisfies the given

Callers 2

containsAllImplMethod · 0.95
allMatchMethod · 0.95

Calls 2

allMethod · 0.95
iteratorMethod · 0.65

Tested by

no test coverage detected