soaprmi.util.serp
Class IdentityMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended bysoaprmi.util.serp.IdentityMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class IdentityMap
extends java.util.HashMap

Map type that hashes on object identity. Mimics the functionality of the IdentityHashMap in Java 1.4.

Author:
Abe White
See Also:
Serialized Form

Constructor Summary
IdentityMap()
           
IdentityMap(int initialCapacity)
           
IdentityMap(int initialCapacity, float loadFactor)
           
IdentityMap(java.util.Map map)
           
 
Method Summary
 java.lang.Object clone()
           
 boolean containsKey(java.lang.Object key)
           
 java.util.Set entrySet()
           
 java.lang.Object get(java.lang.Object key)
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 void putAll(java.util.Map map)
           
 java.lang.Object remove(java.lang.Object key)
           
 
Methods inherited from class java.util.HashMap
clear, containsValue, isEmpty, 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

IdentityMap

public IdentityMap()
See Also:
HashMap.HashMap()

IdentityMap

public IdentityMap(int initialCapacity)
See Also:
HashMap.HashMap(int)

IdentityMap

public IdentityMap(int initialCapacity,
                   float loadFactor)
See Also:
HashMap.HashMap(int,float)

IdentityMap

public IdentityMap(java.util.Map map)
See Also:
HashMap.HashMap(Map)
Method Detail

clone

public java.lang.Object clone()

containsKey

public boolean containsKey(java.lang.Object key)

entrySet

public java.util.Set entrySet()

get

public java.lang.Object get(java.lang.Object key)

keySet

public java.util.Set keySet()

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)

putAll

public void putAll(java.util.Map map)

remove

public java.lang.Object remove(java.lang.Object key)


Copyright (c) 2004 IU Extreme! Lab http://www.extreme.indiana.edu/ All Rights Reserved.