Java Identity HashMap Tutorial with Example program
By candid | Posted :
Dec 11, 2015
| Updated :
Dec 11, 2015
Class IdentityHashMap
Type Parameters:
K - the type of keys maintained by this map
V - the type of mapped values
All Implemented Interfaces: Serializable, Cloneable, Map
public class IdentityHashMap extends AbstractMap implements Map, Serializable, Cloneable { // }
Since: 1.4
See Also: System.identityHashCode(Object), Object.hashCode(), Collection, Map, HashMap, TreeMap, Serialized Form Nested classes/interfaces inherited from class java.util.AbstractMap AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry Nested classes/interfaces inherited from interface java.util.Map Map.Entry
Constructors summary IdentityHashMap() Constructs a new, empty identity hash map with a default expected maximum size (21).
IdentityHashMap(int expectedMaxSize) Constructs a new, empty map with the specified expected maximum size.
IdentityHashMap(Map m) Constructs a new identity hash map containing the keys-value mappings in the specified map. Methods summary
void clear() Removes all of the mappings from this map.
Object clone() Returns a shallow copy of this identity hash map: the keys and values themselves are not cloned.