org.apache.ojb.broker.util
Class IdentityHashMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
org.apache.ojb.broker.util.IdentityHashMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map
public final class IdentityHashMap
- extends HashMap
replacement for the JDK1.4 version
User: Matthew Baird
Date: Jul 8, 2003
Time: 8:37:00 AM
- See Also:
- Serialized Form
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
public IdentityHashMap(Map t)
- Constructor for IdentityHashMap.
- Parameters:
t
-
get
public Object get(Object key)
- Specified by:
get
in interface Map
- Overrides:
get
in class HashMap
- See Also:
Map.get(java.lang.Object)
put
public Object put(Object key,
Object value)
- Specified by:
put
in interface Map
- Overrides:
put
in class HashMap
- See Also:
Map.put(java.lang.Object, java.lang.Object)
add
public Object add(Object value)
- adds an object to the Map. new IdentityKey(obj) is used as key
remove
public Object remove(Object key)
- Specified by:
remove
in interface Map
- Overrides:
remove
in class HashMap
- See Also:
Map.remove(java.lang.Object)
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map
- Overrides:
containsKey
in class HashMap
- See Also:
Map.containsKey(java.lang.Object)
Copyright © 2007-2012 The Kuali Foundation. All Rights Reserved.