|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.sdedit.util.Pair<F,S>
F - the type of the first entry of the pairS - the type of the second entry of the pairpublic class Pair<F,S>
Pair objects can hold two objects of types F and S
| Constructor Summary | |
|---|---|
Pair(F first,
S second)
Creates a new Pair |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Returns true iff both elements of this Pair equal both elements of another Pair. |
F |
getFirst()
Returns the first object |
S |
getSecond()
Returns the second object |
int |
hashCode()
Returns this Pair's hash code, of which the 16 high bits are the 16 low bits of getFirst().hashCode() are identical to the 16 low bits and the 16 low bits of getSecond().hashCode() |
void |
setFirst(F first)
Sets the first object. |
void |
setSecond(S second)
Sets the second object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(F first,
S second)
first - the first objectsecond - the second object| Method Detail |
|---|
public F getFirst()
public S getSecond()
public void setFirst(F first)
first - the first object of the pairpublic void setSecond(S second)
second - the second object of the pairpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - object reference to another Pair
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||