Example usage for Java java.util IdentityHashMap fields, constructors, methods, implement or subclass
The text is from its open source code.
int | size The number of key-value mappings contained in this identity hash map. |
Set | entrySet This field is initialized to contain an instance of the entry set view the first time this view is requested. |
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 extends K, ? extends V> m) Constructs a new identity hash map containing the keys-value mappings in the specified map. |
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. |
boolean | containsKey(Object key) Tests whether the specified object reference is a key in this identity hash map. |
boolean | containsValue(Object value) Tests whether the specified object reference is a value in this identity hash map. |
boolean | equals(Object o) Compares the specified object with this map for equality. |
V | get(Object key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
int | hashCode() Returns the hash code value for this map. |
boolean | isEmpty() Returns true if this identity hash map contains no key-value mappings. |
Set | keySet() Returns an identity-based set view of the keys contained in this map. |
V | put(K key, V value) Associates the specified value with the specified key in this identity hash map. |
void | putAll(Map extends K, ? extends V> m) Copies all of the mappings from the specified map to this map. |
V | remove(Object key) Removes the mapping for this key from this map if present. |
String | toString() Returns a string representation of the object. |
Collection | values() Returns a Collection view of the values contained in this map. |