org.deduced
Class Reference

java.lang.Object
  extended by org.deduced.Reference
All Implemented Interfaces:
java.lang.Cloneable

public class Reference
extends java.lang.Object
implements java.lang.Cloneable

Reference is used to register a reference from one collection to another

Author:
Steve McDuff

Field Summary
private  java.lang.Object key
          the key which points to the reference
private  java.lang.ref.WeakReference<PropertyCollection<?,?>> referencer
          weak reference to the referencer
 
Constructor Summary
Reference()
           
 
Method Summary
protected  java.lang.Object callSuperClone()
          call Super Clone
 java.lang.Object clone()
          (non-Javadoc)
 boolean equals(java.lang.Object obj)
          (non-Javadoc)
 java.lang.Object getKey()
           
 PropertyCollection<?,?> getReferencer()
           
 int hashCode()
          (non-Javadoc)
 void setKey(java.lang.Object setKey)
           
 void setReferencer(PropertyCollection<?,?> setReferencer)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

referencer

private java.lang.ref.WeakReference<PropertyCollection<?,?>> referencer
weak reference to the referencer


key

private java.lang.Object key
the key which points to the reference

Constructor Detail

Reference

public Reference()
Method Detail

getKey

public java.lang.Object getKey()
Returns:
Returns the key.

setKey

public void setKey(java.lang.Object setKey)
Parameters:
setKey - The key to set.

getReferencer

public PropertyCollection<?,?> getReferencer()
Returns:
Returns the referencer.

setReferencer

public void setReferencer(PropertyCollection<?,?> setReferencer)
Parameters:
setReferencer - The referencer to set.

clone

public java.lang.Object clone()
(non-Javadoc)

Overrides:
clone in class java.lang.Object
See Also:
Object.clone()

callSuperClone

protected java.lang.Object callSuperClone()
                                   throws java.lang.CloneNotSupportedException
call Super Clone

Returns:
the cloned object
Throws:
java.lang.CloneNotSupportedException - unexpected error.

equals

public boolean equals(java.lang.Object obj)
(non-Javadoc)

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
(non-Javadoc)

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()