Class ObjectIdDictionary
- java.lang.Object
-
- com.thoughtworks.xstream.core.util.ObjectIdDictionary
-
public class ObjectIdDictionary extends java.lang.ObjectStore 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
Constructors Constructor Description ObjectIdDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassociateId(java.lang.Object obj, java.lang.Object id)booleancontainsId(java.lang.Object item)java.lang.ObjectlookupId(java.lang.Object obj)voidremoveId(java.lang.Object item)intsize()
-