Java, Eclipse Collections, Open Source, Programming, Software Development.
Fruit.CHERRY)); } The following are some examples of testing equality for a Bag. @Test public void bagEquality() { MutableBag<Fruit> bag = Bags.mutable.of(Fruit.APPLE, Fruit.BANANA, Fruit.BANANA, Fruit.CHERRY); // Equality of Bag is based on Type, Size and Contents // Bag allows duplicates // Order