java.lang.Iterable, java.util.Collection, Bagpublic class HashBag extends DefaultMapBag implements Bag
Bag that is backed by a HashMap.| Constructor | Description |
|---|---|
HashBag() |
Deprecated.
Constructs an empty
HashBag. |
HashBag(java.util.Collection coll) |
Deprecated.
Constructs a
Bag containing all the members of the given
collection. |
add, add, containsAll, getCount, iterator, remove, remove, removeAll, retainAll, size, uniqueSetaddAll, clear, contains, equals, hashCode, isEmpty, parallelStream, removeIf, spliterator, stream, toArray, toArrayadd, add, addAll, calcTotalSize, clear, contains, containsAll, containsAll, equals, getCount, getMap, hashCode, isEmpty, iterator, remove, remove, removeAll, retainAll, retainAll, setMap, size, toArray, toArray, toString, uniqueSetpublic HashBag()
HashBag.public HashBag(java.util.Collection coll)
Bag containing all the members of the given
collection.coll - a collection to copy into this bagCopyright © 2001-2018 Apache Software Foundation. All Rights Reserved.