Example usage for Java org.apache.commons.collections4 Bag fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | add(E object) (Violation) Adds one copy of the specified object to the Bag. |
boolean | add(E object, int nCopies) Adds nCopies copies of the specified object to the Bag. |
boolean | containsAll(Collection> coll) (Violation) Returns true if the bag contains all elements in the given collection, respecting cardinality. |
boolean | equals(Object o) Compares the specified object with this collection for equality. |
int | getCount(Object object) Returns the number of occurrences (cardinality) of the given object currently in the bag. |
Set | uniqueSet() Returns a Set of unique elements in the Bag. |