|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.Pair<U,V>
U - the type of the first element in the pair.V - the type of the second element in the pair.public class Pair<U,V>
Utility class holding a pair of references to two objects.
| Constructor Summary | |
|---|---|
Pair(U first,
V second)
Initialize this pair with two values. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
U |
first()
Get the first value of this pair. |
int |
hashCode()
Get the hashcode for this object. |
V |
second()
Get the second value of this pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(U first,
V second)
first - the first value of the new pair.second - the second value of the new pair.| Method Detail |
|---|
public U first()
public V second()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if this object is the same as the obj.Object.equals(java.lang.Object)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||