Package jadex.bdiv3.examples.puzzle
Class Position
- java.lang.Object
- 
- jadex.bdiv3.examples.puzzle.Position
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class Position extends java.lang.Object implements java.io.SerializableA position has two coordinates.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Test if two positions are equal.intgetX()Get the x value.intgetY()Get the y value.inthashCode()Calculate the hash code.voidsetX(int x)Set x.voidsetY(int y)Set y.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Method Detail- 
getXpublic int getX() Get the x value.
 - 
getYpublic int getY() Get the y value.
 - 
setXpublic void setX(int x) Set x.- Parameters:
- x-
 
 - 
setYpublic void setY(int y) Set y.- Parameters:
- y-
 
 - 
equalspublic boolean equals(java.lang.Object o) Test if two positions are equal.- Overrides:
- equalsin class- java.lang.Object
- Returns:
- True, if equal.
 
 - 
hashCodepublic int hashCode() Calculate the hash code.- Overrides:
- hashCodein class- java.lang.Object
- Returns:
- The hash code.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
-