|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hermes.Pair<A,B>
A
- the type of the first object in the pairB
- the type of the second object in the pairpublic class Pair<A,B>
Utility for wrapping a pair of objects.
Field Summary | |
---|---|
A |
first
|
B |
second
|
Constructor Summary | |
---|---|
Pair(A first,
B second)
Creates a Pair with given values for in its first and second fields. |
Method Summary | |
---|---|
A |
getFirst()
|
B |
getSecond()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public A first
public B second
Constructor Detail |
---|
public Pair(A first, B second)
first
- the first object to storesecond
- the second object to storeMethod Detail |
---|
public A getFirst()
public B getSecond()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |