org.wamblee.general
Class ObjectElem

java.lang.Object
  extended by org.wamblee.general.ObjectElem

public class ObjectElem
extends Object

This class provided an equality operation based on the object reference of the wrapped object. This is required because we cannto assume that the equals operation has any meaning for different types of persistent objects. This allows us to use the standard collection classes for detecting cyclic dependences and avoiding recursion.


Constructor Summary
ObjectElem(Object aObject)
          Constructs the wrapper.
 
Method Summary
 boolean equals(Object aObj)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectElem

public ObjectElem(Object aObject)
Constructs the wrapper.

Parameters:
aObject - Object.
Method Detail

equals

public boolean equals(Object aObj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011. All Rights Reserved.