- uniqueSet
Returns a Set of unique elements in the Bag. Uniqueness constraints are the same
as those in java.ut
- add
Adds nCopies copies of the specified object to the Bag. If the object is already
in the #uniqueSet()
- getCount
Returns the number of occurrences (cardinality) of the given object currently in
the bag. If the obj
- size
Returns the total number of items in the bag across all types.
- addAll
- clear
- isEmpty
- iterator
Returns an Iterator over the entire set of members, including copies due to
cardinality. This iterat
- remove
Removes nCopies copies of the specified object from the Bag. If the number of
copies to remove is gr
- removeAll
(Violation) Remove all elements represented in the given collection, respecting
cardinality. That is
- retainAll
(Violation) Remove any members of the bag that are not in the given collection,
respecting cardinali