Package org.apache.axis.utils
Class IdentityHashMap
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.apache.axis.utils.IdentityHashMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map
IdentityHashMap similar to JDK1.4's java.util.IdentityHashMap
- Author:
- Davanum Srinivas invalid input: '<'dims@yahoo.com>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for IdentityHashMap.IdentityHashMap
(int initialCapacity) Constructor for IdentityHashMap.IdentityHashMap
(int initialCapacity, float loadFactor) Constructor for IdentityHashMap.Constructor for IdentityHashMap. -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, newHashMap, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
IdentityHashMap
public IdentityHashMap(int initialCapacity, float loadFactor) Constructor for IdentityHashMap.- Parameters:
initialCapacity
-loadFactor
-
-
IdentityHashMap
public IdentityHashMap(int initialCapacity) Constructor for IdentityHashMap.- Parameters:
initialCapacity
-
-
IdentityHashMap
public IdentityHashMap()Constructor for IdentityHashMap. -
IdentityHashMap
Constructor for IdentityHashMap.- Parameters:
t
-
-
-
Method Details
-
get
-
put
-
add
adds an object to the Map. new Identity(obj) is used as key -
remove
-
containsKey
- Specified by:
containsKey
in interfaceMap
- Overrides:
containsKey
in classHashMap
- See Also:
-