org.apache.ojb.broker.util
Class IdentityHashMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by 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

Nested Class Summary
private static class IdentityHashMap.IdentityKey
           
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
IdentityHashMap()
          Constructor for IdentityHashMap.
IdentityHashMap(int initialCapacity)
          Constructor for IdentityHashMap.
IdentityHashMap(int initialCapacity, float loadFactor)
          Constructor for IdentityHashMap.
IdentityHashMap(Map t)
          Constructor for IdentityHashMap.
 
Method Summary
 Object add(Object value)
          adds an object to the Map.
 boolean containsKey(Object key)
           
 Object get(Object key)
           
 Object put(Object key, Object value)
           
 Object remove(Object key)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, keySet, putAll, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

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 -
Method Detail

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.