E1
- Generics indicating the type information for the first one in the pair.E2
- Generics indicating the type information for the second one in the pair.public class Pair<E1,E2>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
E1 |
first() |
E2 |
second() |
void |
setFirst(E1 first) |
void |
setSecond(E2 second) |