Java org.apache.commons.collections.bag HashBag fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.collections.bag HashBag fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.collections.bag HashBag.

The text is from its open source code.

Subclass

org.apache.commons.collections.bag.HashBag has subclasses.
Click this link to see all its subclasses.

Constructor

HashBag(Collection coll)
Constructs a bag containing all the members of the given collection.
HashBag()
Constructs an empty HashBag.

Method

booleanadd(Object object, int nCopies)
Adds a new element to the bag, incrementing its count in the map.
ClassgetClass()
Returns the runtime class of this Object .
intgetCount(Object object)
Returns the number of occurrence of the given element in this bag by looking up its count in the underlying map.