493494495496497498499500501502503
return this.items.keysView().allSatisfy(new ShortPredicate() { public boolean accept(short key) { return ShortHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key); } }); } @Override
254255256257258259260261262263264
ShortBag bag = (ShortBag) obj; if (bag.size() != 1) { return false; } return this.occurrencesOf(this.element1) == bag.occurrencesOf(this.element1); } @Override public int hashCode() {