|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectou3.Position
public class Position
Contains a two-dimensional position.
Field Summary | |
---|---|
private int |
x
Represents the horizontal positioning. |
private int |
y
Represents the vertical positioning. |
Constructor Summary | |
---|---|
Position(int x,
int y)
Constructs a position |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
getX()
Returns x coordinate of position |
int |
getY()
Returns y coordinate of position |
int |
hashCode()
|
java.lang.String |
toString()
ToString-method, returns the x and y coordinates in the form (x, y) |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int x
private int y
Constructor Detail |
---|
public Position(int x, int y)
x
- - x coordinatey
- - y coordinateMethod Detail |
---|
public int getX()
public int getY()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |