Class Position
- java.lang.Object
-
- jadex.bdi.examples.garbagecollector_classic.Position
-
public class Position extends java.lang.ObjectThe 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 booleanequals(java.lang.Object o)intgetX()Get the x value.intgetY()Get the y value.inthashCode()java.lang.StringtoString()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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-