public class Position
extends java.lang.Object
Constructor and Description |
---|
Position(int x,
int y)
Creates an immutable instance of a 2D integer coordinate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getX() |
int |
getY() |
int |
hashCode() |
public Position(int x, int y)
public int getX()
public int getY()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object