|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.panter.li.bi.util.Pair<T1,T2>
public final class Pair<T1,T2>
Simple encapsulation of a pair of objects. Comes in handy if a method is required to return more than one object.
| Constructor Summary | |
|---|---|
Pair(T1 first,
T2 second)
Creates a new instance holding the two given objects. |
|
| Method Summary | |
|---|---|
T1 |
getFirst()
Access to the first object of the pair. |
T2 |
getSecond()
Access to the second object of the pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(T1 first,
T2 second)
first - the first object of the pairsecond - the second object of the pair| Method Detail |
|---|
public final T1 getFirst()
public final T2 getSecond()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||