public class PlotId
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.Integer |
x
x value
|
java.lang.Integer |
y
y value
|
| Constructor and Description |
|---|
PlotId(int x,
int y)
PlotId class (PlotId x,y values do not correspond to Block
locations)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
|
static PlotId |
fromString(java.lang.String string)
Get a Plot Id based on a string
|
int |
hashCode()
|
java.lang.String |
toString()
|
public PlotId(int x,
int y)
x - The plot x coordinatey - The plot y coordinatepublic static PlotId fromString(java.lang.String string)
string - to create id frompublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object