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