public class Location
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
layer
The layer.
|
private int |
x
The x-coordinate.
|
private int |
y
The y-coordinate.
|
Constructor and Description |
---|
Location(int x,
int y,
int layer)
Creates a new location.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getLayer()
Returns the layer.
|
int |
getX()
Returns the x-coordinate.
|
int |
getY()
Returns the y-coordinate.
|
int |
hashCode() |
java.lang.String |
toString() |
private final int layer
private final int x
private final int y
public Location(int x, int y, int layer)
x
- the x-coordinatey
- the y-coordinatelayer
- the layerpublic boolean equals(@Nullable java.lang.Object obj)
equals
in class java.lang.Object
public int getLayer()
public int getX()
public int getY()
public int hashCode()
hashCode
in class java.lang.Object
@NotNull public java.lang.String toString()
toString
in class java.lang.Object