Java org.apache.commons.collections4 Bag fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.collections4 Bag fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.collections4 Bag.

The text is from its open source code.

Method

booleanadd(E object)
(Violation) Adds one copy of the specified object to the Bag.
booleanadd(E object, int nCopies)
Adds nCopies copies of the specified object to the Bag.
booleancontainsAll(Collection coll)
(Violation) Returns true if the bag contains all elements in the given collection, respecting cardinality.
booleanequals(Object o)
Compares the specified object with this collection for equality.
intgetCount(Object object)
Returns the number of occurrences (cardinality) of the given object currently in the bag.
SetuniqueSet()
Returns a Set of unique elements in the Bag.