| Package | Description |
|---|---|
| util |
| Modifier and Type | Method and Description |
|---|---|
static <C1,C2> Pair<C1,C2> |
Pair.newPair(C1 e1,
C2 e2)
Static constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <O> java.lang.Iterable<Pair<O,O>> |
Pair.allPairs(java.util.List<? extends O> l)
Returns the list of pairs of elements in the specified list,
excluding the identical pairs and the reversed pairs.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Pair.compareTo(Pair<C1,C2> pair)
Compares this pair to the specified object.
|