|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sr.common.transformer.ObjectReferenceMap
public class ObjectReferenceMap
This class keeps object references within it. It's designed as a helper class to detect circular object references for java serialization/transformation purposes
Constructor Summary | |
---|---|
ObjectReferenceMap()
|
Method Summary | |
---|---|
void |
clear()
Clears the reference map |
boolean |
contains(java.lang.Object obj)
Checks if the object reference already exist in the map |
boolean |
contains(java.lang.Object obj,
int refId)
Checks if the object reference already exist in the map with the given referenceId |
void |
putObject(java.lang.Object obj)
Puts an object reference to the map.It never thrown an exception for the null references.It simply skips them. |
void |
removeObject(java.lang.Object obj)
Removes an object reference from the map.It never thrown an exception for the null references.It simply skips them. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectReferenceMap()
Method Detail |
---|
public void putObject(java.lang.Object obj) throws ObjectExistException
obj
-
ObjectExistException
- thrown if object already exist in the mappublic void removeObject(java.lang.Object obj)
obj
- public boolean contains(java.lang.Object obj)
obj
-
public boolean contains(java.lang.Object obj, int refId)
obj
-
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |