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