public class Pair<T1,T2>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
T1 |
getElement1()
Returns the first element of the pair.
|
T2 |
getElement2()
Returns the second element of the pair.
|
void |
setElement1(T1 element1)
Sets the first element of the pair.
|
void |
setElement2(T2 element2)
Sets the second element of the pair.
|
void |
setElements(T1 element1,
T2 element2)
Sets elements of the pair.
|
public T1 getElement1()
public T2 getElement2()
public void setElement1(T1 element1)
element1
- the first element of the pairpublic void setElement2(T2 element2)
element2
- the second element of the pair