|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.danielbechler.diff.path.Element
public abstract class Element
Serves mainly as marker class and enforces the proper implementation of hashCode(), equals() and toString() for all property path elements.
| Constructor Summary | |
|---|---|
Element()
|
|
| Method Summary | |
|---|---|
abstract boolean |
equals(Object obj)
Must be implemented in a way so that this element can be distinguished from the other ones. |
abstract int |
hashCode()
Make sure to implement this properly. |
abstract String |
toString()
The string representation will only be used to print readable property paths for debug purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Element()
| Method Detail |
|---|
public abstract boolean equals(Object obj)
equals in class Objectobj - The object to check equality against.
true is the given object equals this one, otherwise false.public abstract int hashCode()
0.
hashCode in class Objectpublic abstract String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||