|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.ramapuram.thomas.model.BaseObject
public abstract class BaseObject
Base class for Model objects. Child objects should implement toString(), equals() and hashCode().
| Constructor Summary | |
|---|---|
BaseObject()
|
|
| Method Summary | |
|---|---|
abstract boolean |
equals(java.lang.Object o)
Compares object equality. |
abstract int |
hashCode()
When you override equals, you should override hashCode. |
abstract java.lang.String |
toString()
Returns a multi-line String with key=value pairs. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseObject()
| Method Detail |
|---|
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic abstract boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object to compare to
public abstract int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||