public class Point
extends java.lang.Object
Constructor and Description |
---|
Point(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getX() |
int |
getY() |
int |
hashCode() |
void |
move(int newX,
int newY) |
Point |
moveBy(int xOffset,
int yOffset) |
java.lang.String |
toString() |
public int getX()
public int getY()
public Point moveBy(int xOffset, int yOffset)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void move(int newX, int newY)
public java.lang.String toString()
toString
in class java.lang.Object