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