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

Method countAll

forge-core/src/main/java/forge/util/ItemPool.java:136–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 }
135
136 public final int countAll() {
137 int count = 0;
138 for (Entry<T, Integer> e : this) {
139 count += e.getValue();
140 }
141 return count;
142 }
143
144 public int countAll(Predicate<T> condition){
145 int count = 0;

Callers 15

sellAllByFilterMethod · 0.80
autoSellAllByFilterMethod · 0.80
updateCaptionMethod · 0.80
setSelectedMethod · 0.80
setItemTooltipsMethod · 0.80
drawValueMethod · 0.80
buildMenuMethod · 0.80
updateCaptionMethod · 0.80
updateCaptionMethod · 0.80
AddBasicLandsDialogMethod · 0.80

Calls 4

valuesMethod · 0.80
isInstanceMethod · 0.80
getValueMethod · 0.45
testMethod · 0.45

Tested by 6

boosterDraft1Test1Method · 0.64
getRandomPreconMethod · 0.64
isValidDeckMethod · 0.64
isValidCommanderDeckMethod · 0.64