public class IdentityHashMap extends HashMap
AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry
Constructor and Description |
---|
IdentityHashMap()
Constructor for IdentityHashMap.
|
IdentityHashMap(int initialCapacity)
Constructor for IdentityHashMap.
|
IdentityHashMap(int initialCapacity,
float loadFactor)
Constructor for IdentityHashMap.
|
IdentityHashMap(Map t)
Constructor for IdentityHashMap.
|
Modifier and Type | Method and Description |
---|---|
Object |
add(Object value)
adds an object to the Map. new Identity(obj) is used as key
|
boolean |
containsKey(Object key) |
Object |
get(Object key) |
Object |
put(Object key,
Object value) |
Object |
remove(Object key) |
clear, clone, containsValue, entrySet, isEmpty, keySet, putAll, size, values
equals, hashCode, toString
public IdentityHashMap(int initialCapacity, float loadFactor)
initialCapacity
- loadFactor
- public IdentityHashMap(int initialCapacity)
initialCapacity
- public IdentityHashMap()
public IdentityHashMap(Map t)
t
- public Object get(Object key)
get
in interface Map
get
in class HashMap
Map.get(Object)
public Object put(Object key, Object value)
put
in interface Map
put
in class HashMap
Map.put(Object, Object)
public Object remove(Object key)
remove
in interface Map
remove
in class HashMap
Map.remove(Object)
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in class HashMap
Map.containsKey(Object)
Copyright © The Apache Software Foundation. All Rights Reserved.