493494495496497498499500501502503
return this.items.keysView().allSatisfy(new FloatPredicate() { public boolean accept(float key) { return FloatHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key); } }); } @Override
254255256257258259260261262263264
IntBag bag = (IntBag) obj; if (bag.size() != 1) { return false; } return this.occurrencesOf(this.element1) == bag.occurrencesOf(this.element1); } @Override public int hashCode() {
return this.items.keysView().allSatisfy(new IntPredicate() { public boolean accept(int key) { return IntHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key); } }); } @Override
return this.items.keysView().allSatisfy(new LongPredicate() { public boolean accept(long key) { return LongHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key); } }); } @Override
LongBag bag = (LongBag) obj; if (bag.size() != 1) { return false; } return this.occurrencesOf(this.element1) == bag.occurrencesOf(this.element1); } @Override public int hashCode() {
return this.items.keysView().allSatisfy(new ShortPredicate() { public boolean accept(short key) { return ShortHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key); } }); } @Override
ShortBag bag = (ShortBag) obj; if (bag.size() != 1) { return false; } return this.occurrencesOf(this.element1) == bag.occurrencesOf(this.element1); } @Override public int hashCode() {