|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.utils.Pair<E1,E2>
E1
- the type of the first elementE2
- the type of the second elementpublic class Pair<E1,E2>
A very simple container.
Constructor Summary | |
---|---|
Pair(E1 element1,
E2 element2)
This constructor creates a pair of element1 and element2 . |
Method Summary | |
---|---|
E1 |
getFirstElement()
This method returns the first element. |
E2 |
getSecondElement()
This method returns the second element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pair(E1 element1, E2 element2)
element1
and element2
.
element1
- the first elementelement2
- the second elementMethod Detail |
---|
public E1 getFirstElement()
public E2 getSecondElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |