484485486487488489490491492493494
if (!(otherBag instanceof DoubleBag)) { return false; } final DoubleBag bag = (DoubleBag) otherBag; if (this.sizeDistinct() != bag.sizeDistinct()) { return false; } return this.items.keysView().allSatisfy(new DoublePredicate()