MCPcopy Create free account
hub / github.com/Card-Forge/forge / all

Method all

forge-core/src/main/java/forge/util/IterableUtil.java:56–58  ·  view source on GitHub ↗
(Iterable<T> iterable, Predicate<? super T> test)

Source from the content-addressed store, hash-verified

54 }
55
56 public static <T> boolean all(Iterable<T> iterable, Predicate<? super T> test) {
57 return StreamSupport.stream(iterable.spliterator(), false).allMatch(test);
58 }
59
60 @SuppressWarnings("OptionalGetWithoutIsPresent")
61 public static <T> T find(Iterable<T> iterable, Predicate<? super T> predicate) {

Callers 3

andMethod · 0.95
getBestAIMethod · 0.95
chooseCardsPileMethod · 0.95

Calls 2

allMatchMethod · 0.65
streamMethod · 0.65

Tested by

no test coverage detected