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

Method any

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

Source from the content-addressed store, hash-verified

50 }
51
52 public static <T> boolean any(Iterable<T> iterable, Predicate<? super T> test) {
53 return StreamSupport.stream(iterable.spliterator(), false).anyMatch(test);
54 }
55
56 public static <T> boolean all(Iterable<T> iterable, Predicate<? super T> test) {
57 return StreamSupport.stream(iterable.spliterator(), false).allMatch(test);

Callers 15

containsMethod · 0.95
filterCardsMethod · 0.95
hasRemoveIntrinsicMethod · 0.95
canBeShownToAnyMethod · 0.95
containsKeywordMethod · 0.95
cardHasPropertyMethod · 0.95
commitCrimeCheckMethod · 0.95
resolveMethod · 0.95
loadEditionsMethod · 0.95
hasKeywordMethod · 0.95
orMethod · 0.95

Calls 2

anyMatchMethod · 0.65
streamMethod · 0.65

Tested by 2

initCardImageMocksMethod · 0.64
initCardImageMocksMethod · 0.64