|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gisgraphy.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(Object o)
Compares object equality. |
abstract int |
hashCode()
When you override equals, you should override hashCode. |
abstract 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 String toString()
toString
in class Object
public abstract boolean equals(Object o)
equals
in class Object
o
- object to compare to
public abstract int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |