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

Method all

output/java_guava/1.4.17/Iterables.java:661–663  ·  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

659
660
661 public static <T> boolean all(Iterable<T> iterable, Predicate<? super T> predicate) {
662 return Iterators.all(iterable.iterator(), predicate);
663 }
664
665 /**
666 * 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