org.apache.commons.collections

Class HashBag

Implemented Interfaces:
Bag, Collection

public class HashBag
extends DefaultMapBag
implements Bag

An implementation of Bag that is backed by a HashMap.
Author:
Chuck Burdick
Since:
2.0

Constructor Summary

HashBag()
Constructs a new empty HashBag.
HashBag(Collection c)
New Bag containing all the members of the given collection.

Method Summary

Methods inherited from class org.apache.commons.collections.DefaultMapBag

add, add, addAll, calcTotalSize, clear, contains, containsAll, containsAll, equals, getCount, getMap, hashCode, isEmpty, iterator, remove, remove, removeAll, retainAll, retainAll, setMap, size, toArray, toArray, toString, uniqueSet

Constructor Details

HashBag

public HashBag()
Constructs a new empty HashBag.

HashBag

public HashBag(Collection c)
New Bag containing all the members of the given collection.
See Also:
HashBag

Copyright © 2001-2004 Apache Software Foundation. Documenation generated ${TODAY}.