⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.collections

Class HashBag

java.lang.Object
|
+--org.apache.commons.collections.DefaultMapBag
   |
   +--org.apache.commons.collections.HashBag

All Implemented Interfaces:
Bag, Bag


public class HashBag
extends DefaultMapBag
implements Bag

A Bag that is backed by a HashMap.
Since:
Commons Collections 2.0
Author:
Chuck Burdick

Constructor Summary

HashBag()

Constructs an empty HashBag.

HashBag(Collection coll)

Constructs a Bag containing all the members of the given collection.

Constructor Details

HashBag

public HashBag()

Constructs an empty HashBag.


HashBag

public HashBag(Collection coll)

Constructs a Bag containing all the members of the given collection.

Parameters:
coll - a collection to copy into this bag