edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.core.util
Class ObjectIdDictionary

java.lang.Object
  extended by edu.internet2.middleware.grouperClientExt.com.thoughtworks.xstream.core.util.ObjectIdDictionary

public class ObjectIdDictionary
extends Object

Store IDs against given object references.

Behaves similar to java.util.IdentityHashMap, but in JDK1.3 as well. Additionally the implementation keeps track of orphaned IDs by using a WeakReference to store the reference object.


Constructor Summary
ObjectIdDictionary()
           
 
Method Summary
 void associateId(Object obj, Object id)
           
 boolean containsId(Object item)
           
 Object lookupId(Object obj)
           
 void removeId(Object item)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIdDictionary

public ObjectIdDictionary()
Method Detail

associateId

public void associateId(Object obj,
                        Object id)

lookupId

public Object lookupId(Object obj)

containsId

public boolean containsId(Object item)

removeId

public void removeId(Object item)

size

public int size()


Copyright © 2012 Internet2. All Rights Reserved.