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:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public final class IdentityHashMap
extends java.util.HashMap

replacement for the JDK1.4 version User: Matthew Baird Date: Jul 8, 2003 Time: 8:37:00 AM

See Also:
Serialized Form

Constructor Summary
IdentityHashMap()
          Constructor for IdentityHashMap.
IdentityHashMap(int initialCapacity)
          Constructor for IdentityHashMap.
IdentityHashMap(int initialCapacity, float loadFactor)
          Constructor for IdentityHashMap.
IdentityHashMap(java.util.Map t)
          Constructor for IdentityHashMap.
 
Method Summary
 java.lang.Object add(java.lang.Object value)
          adds an object to the Map. new IdentityKey(obj) is used as key
 boolean containsKey(java.lang.Object key)
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.Object remove(java.lang.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
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(java.util.Map t)
Constructor for IdentityHashMap.

Parameters:
t -
Method Detail

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.HashMap
See Also:
Map.get(java.lang.Object)

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map
Overrides:
put in class java.util.HashMap
See Also:
Map.put(java.lang.Object, java.lang.Object)

add

public java.lang.Object add(java.lang.Object value)
adds an object to the Map. new IdentityKey(obj) is used as key


remove

public java.lang.Object remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map
Overrides:
remove in class java.util.HashMap
See Also:
Map.remove(java.lang.Object)

containsKey

public boolean containsKey(java.lang.Object key)
Specified by:
containsKey in interface java.util.Map
Overrides:
containsKey in class java.util.HashMap
See Also:
Map.containsKey(java.lang.Object)


(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30