uk.ac.nott.cs.g54dia.library
Class Point
java.lang.Object
uk.ac.nott.cs.g54dia.library.Point
- All Implemented Interfaces:
- java.lang.Cloneable
public class Point
- extends java.lang.Object
- implements java.lang.Cloneable
A 2D position in the Environment.
Field Summary |
(package private) int |
x
|
(package private) int |
y
|
Constructor Summary |
Point(int x,
int y)
|
Method Summary |
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
Override hashCode to make sure identical points produce identical
hashes. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
x
volatile int x
y
volatile int y
Point
Point(int x,
int y)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object
hashCode
public int hashCode()
- Override hashCode to make sure identical points produce identical
hashes.
- Overrides:
hashCode
in class java.lang.Object