|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.ac.ulg.montefiore.run.totem.util.Pair<O1,O2>
public class Pair<O1,O2>
Simple class that handle pairs of objects.
Creation date: 5 janv. 2006
| Constructor Summary | |
|---|---|
Pair(O1 first,
O2 second)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
O1 |
getFirst()
return the first element of the pair. |
O2 |
getSecond()
get the second element of the pair. |
int |
hashCode()
|
void |
setFirst(O1 first)
sets the first element of the pair. |
void |
setSecond(O2 second)
set the second element of the pair |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(O1 first,
O2 second)
| Method Detail |
|---|
public O1 getFirst()
public void setFirst(O1 first)
first - public O2 getSecond()
public void setSecond(O2 second)
second - public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic 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 | |||||||||