|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.type.server.Pair
| Field Summary | |
java.lang.Object |
first
First object of the pair. |
java.lang.Object |
second
Second object of the pair. |
| Constructor Summary | |
Pair()
Default Constructor. |
|
Pair(java.lang.Object first,
java.lang.Object second)
Initialising Constructor. |
|
Pair(Pair other)
Initialising copy Constructor. |
|
| Method Summary | |
java.lang.Object |
clone()
Return a copy of this object. |
boolean |
equals(java.lang.Object other)
This function determines if the two objects are equal. |
java.lang.Object |
getFirst()
Gets the data in the following variable: First object of the pair. |
java.lang.Object |
getSecond()
Gets the data in the following variable: Second object of the pair. |
int |
hashCode()
This function returns a unique hash code for this object. |
void |
setFirst(java.lang.Object data)
Sets the data in the following variable: First object of the pair. |
void |
setSecond(java.lang.Object data)
Sets the data in the following variable: Second object of the pair. |
java.lang.String |
toString()
This function returns the String form of the data. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public java.lang.Object first
public java.lang.Object second
| Constructor Detail |
public Pair()
public Pair(java.lang.Object first,
java.lang.Object second)
first - First object of the pair.second - Second object of the pair.public Pair(Pair other)
other - The object to use when initialising this object.| Method Detail |
public java.lang.Object getFirst()
public java.lang.Object getSecond()
public void setFirst(java.lang.Object data)
data - Object containing the data to set the variable to.public void setSecond(java.lang.Object data)
data - Object containing the data to set the variable to.public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - Object to match to this object.public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||