Class Position
- java.lang.Object
-
- jadex.bdi.examples.garbagecollector_classic.Position
-
public class Position extends java.lang.Object
The position on a grid.
-
-
Constructor Summary
Constructors Constructor Description Position(int x, int y)
Create a position.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getX()
Get the x value.int
getY()
Get the y value.int
hashCode()
java.lang.String
toString()
Get the string representation.
-
-
-
Method Detail
-
getX
public int getX()
Get the x value.
-
getY
public int getY()
Get the y value.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-