A
- the type of the paired objectspublic class Pair<A>
extends java.lang.Object
Pair
groups two objects of the same type in a given order.Constructor and Description |
---|
Pair(A first,
A second)
Constructs a
Pair with a first and a second element. |
Modifier and Type | Method and Description |
---|---|
A |
getFirst()
Returns the first element.
|
A |
getSecond()
Returns the second element.
|