java.lang.Object | +--org.apache.commons.collections.map.AbstractHashedMap | +--org.apache.commons.collections.map.HashedMapAll Implemented Interfaces:
Constructs a new empty map with default size and load factor. |
HashedMap(int initialCapacity) Constructs a new, empty map with the specified initial capacity. |
HashedMap(int initialCapacity, float loadFactor) Constructs a new, empty map with the specified initial capacity and load factor. |
HashedMap(Map map) Constructor copying elements from another map. |
Object | clone() Clones the map without cloning the keys or values. |
public HashedMap()
public HashedMap(int initialCapacity, float loadFactor)
- if the initial capacity is less than one
- if the load factor is less than zeropublic HashedMap(int initialCapacity)
- if the initial capacity is less than onepublic HashedMap(Map map)
- if the map is nullpublic Object clone()
Map
implementation that is a general purpose alternative toHashMap
. This implementation improves on the JDK1.4 HashMap by adding the org.apache.commons.collections.MapIterator MapIterator functionality and many methods for subclassing.