|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.puzzle.Position
public class Position
A position has two coordinates.
Constructor Summary | |
---|---|
Position()
Create a position. |
|
Position(int x,
int y)
Create a position. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Test if two positions are equal. |
int |
getX()
Get the x value. |
int |
getY()
Get the y value. |
int |
hashCode()
Calculate the hash code. |
void |
setX(int x)
Set x. |
void |
setY(int y)
Set y. |
String |
toString()
Get the string representation. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Position()
public Position(int x, int y)
Method Detail |
---|
public int getX()
public int getY()
public void setX(int x)
x
- public void setY(int y)
y
- public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.