T - type of first elementS - type of second elementpublic class Pair<T,S>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private T |
elt1
First element of the pair.
|
private S |
elt2
Second element of the pair.
|
| Constructor and Description |
|---|
Pair(T elt1,
S elt2)
Create a pair object.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getElementA()
Get the first element of the pair.
|
S |
getElementB()
Get the second element of the pair.
|
java.lang.String |
toString() |
private final T elt1
private final S elt2
public T getElementA()
public S getElementB()
public java.lang.String toString()
toString in class java.lang.Object