|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.fdsapi.Coordinate
This class is used to represent an x, y coordinate system by the FormattedDataSet API at runtime
to find which DataSet's are registered at a particular coordinate. For example x can correspond to a row
and y a column. This object is used to look up other objects in the HashMap.
View Code
| Field Summary | |
int |
x
The x coordinate in an x, y coordinate system. |
int |
y
The y coordinate in an x, y coordinate system. |
| Constructor Summary | |
Coordinate(int x,
int y)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object compareKey)
This method is called automatically by a HashMap when this class is used as a HashMap key. |
int |
hashCode()
The hashCode function is used by a HashMap to help find a value associated with a key. |
Coordinate |
setValues(int x,
int y)
This function implements the flyweight pattern. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int x
public int y
| Constructor Detail |
public Coordinate(int x,
int y)
| Method Detail |
public boolean equals(java.lang.Object compareKey)
equals in class java.lang.Object
public Coordinate setValues(int x,
int y)
public int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||||