| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(final PointImmutable
the object to be compared. d)Redeclares java. Compares the square of the position. |
| public boolean | |
| public int | |
| public int | |
| public int |
| compareTo | back to summary |
|---|---|
| public int compareTo(final PointImmutable d) Redeclares java. Doc from java. Compares the square of the position. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Checks whether two points objects are equal. Two instances
of
| |
| getX | back to summary |
|---|---|
| public int getX() | |
| getY | back to summary |
|---|---|
| public int getY() | |
| hashCode | back to summary |
|---|---|
public int hashCode()
| |