javatools.util
Class IndexedObject

java.lang.Object
  |
  +--javatools.util.IndexedObject

public class IndexedObject
extends java.lang.Object

An object and an index...


Constructor Summary
IndexedObject()
          Creates new IndexedObject
 
Method Summary
protected  java.lang.Object clone()
          Clones this object.
 boolean equals(java.lang.Object obj)
          Checks if an object is equal to this one.
protected  void finalize()
          Destroys this object.
 java.lang.Object getIndex()
          Returns the index for this object.
 java.lang.Object getRefObject()
          Returns the referred object.
 int hashCode()
          Returns a hash code for this object.
 void setIndex(java.lang.Object pIndex)
          Sets the index for this object.
 void setRefObject(java.lang.Object pRefObject)
          Sets the referring object.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndexedObject

public IndexedObject()
Creates new IndexedObject

Method Detail

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Clones this object.

Overrides:
clone in class java.lang.Object
Returns:
The cloned object.
Throws:
java.lang.CloneNotSupportedException - If you can't clone this.

equals

public boolean equals(java.lang.Object obj)
Checks if an object is equal to this one.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The object to compare to.
Returns:
true: the objects are equal; false: the object are NOT equal.

finalize

protected void finalize()
                 throws java.lang.Throwable
Destroys this object.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable - If something goes wrong.

hashCode

public int hashCode()
Returns a hash code for this object.

Overrides:
hashCode in class java.lang.Object
Returns:
The requested hash code.

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
The requested string.

setRefObject

public void setRefObject(java.lang.Object pRefObject)
Sets the referring object.

Parameters:
pRefObject - The referring object.

getRefObject

public java.lang.Object getRefObject()
Returns the referred object.

Returns:
The referred object.

setIndex

public void setIndex(java.lang.Object pIndex)
Sets the index for this object.

Parameters:
pIndex - The index for this object.

getIndex

public java.lang.Object getIndex()
Returns the index for this object.

Returns:
The index of the object.