|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcommon.graph.Pair<TValue1,TValue2>
TValue1 - Type associated with the first value.TValue2 - Type associated with the second value.public class Pair<TValue1,TValue2>
Associates two values together. Effectively a tuple of arity 2.
| Constructor Summary | |
|---|---|
Pair(TValue1 value1,
TValue2 value2)
Creates a new instance of Pair. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
TValue1 |
getValue1()
Retrieves a reference to the first value provided. |
TValue2 |
getValue2()
Retrieves a reference to the second value provided. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(TValue1 value1,
TValue2 value2)
Pair.
value1 - The first value.value2 - The second value.| Method Detail |
|---|
public TValue1 getValue1()
public TValue2 getValue2()
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 argument; false otherwise.Object.equals(Object)public int hashCode()
hashCode in class ObjectPair.Object.hashCode()public String toString()
toString in class ObjectPair.Object.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||