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

Method is

forge-core/src/main/java/forge/card/DeckHints.java:93–109  ·  view source on GitHub ↗
(Type type, String hints[])

Source from the content-addressed store, hash-verified

91 return false;
92 }
93 public boolean is(Type type, String hints[]) {
94 if (filters == null) {
95 return false;
96 }
97 int num = 0;
98 for (String hint : hints) {
99 for (Pair<Type, String> filter : filters) {
100 if (filter.getLeft() == type && filter.getRight().equals(hint)) {
101 num++;
102 if (num == hints.length) {
103 return true;
104 }
105 }
106 }
107 }
108 return false;
109 }
110
111 /**
112 * Returns a Map of Cards by Type from the given Iterable<PaperCard> that match this

Callers 1

deckHasExactlyMethod · 0.95

Calls 3

getLeftMethod · 0.80
getRightMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected