|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--asd_library.BaseObject
Wrapper class for use with generic data structures.
Constructor Summary | |
BaseObject(int k)
Constructs the BaseObject. |
Method Summary | |
int |
compareTo(java.lang.Object bo)
Implements the compareTo method. |
boolean |
equals(BaseObject anotherBaseObject)
Implements the equals method. |
int |
intValue()
Gets the stored int value. |
void |
setKey(int k)
Sets key to k |
java.lang.String |
toString()
Implements the toString method. |
void |
visit()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BaseObject(int k)
k
- the initial value.Method Detail |
public void setKey(int k)
k
- public int intValue()
public int compareTo(java.lang.Object bo)
compareTo
in interface java.lang.Comparable
bo
- the other BaseObject object.
java.lang.ClassCastException
- if bo is not
a BaseObject.public java.lang.String toString()
toString
in class java.lang.Object
public void visit()
public boolean equals(BaseObject anotherBaseObject)
anotherBaseObject
- the second BaseObject.
java.lang.ClassCastException
- if anotherBaseObject is not
a BaseObject.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |