| Package | Description |
|---|---|
| org.nerd4j.utils.tuple |
| Modifier and Type | Class and Description |
|---|---|
class |
ComparablePair<L,R>
Represents an immutable and comparable pair of values.
|
| Modifier and Type | Method and Description |
|---|---|
static <L,R> Pair<L,R> |
Pair.empty()
Returns the singleton instance of an empty
Pair. |
static <L,R> Pair<L,R> |
Pair.of(L left,
R right)
Creates a new
Pair with
the given values. |
| Modifier and Type | Method and Description |
|---|---|
static <L extends Comparable<L>,R extends Comparable<R>> |
ComparablePair.of(Pair<L,R> pair)
|
static <L extends Comparable<L>,R extends Comparable<R>> |
ComparablePair.of(Pair<L,R> pair,
boolean leftNullLast,
boolean rightNullLast)
Creates a new
ComparablePair starting
from the given Pair of Comparable
values and applies the given behavior for null
values. |
static <L,R> ComparablePair<L,R> |
ComparablePair.of(Pair<L,R> pair,
Comparator<L> leftComparator,
Comparator<R> rightComparator)
Creates a new
ComparablePair starting
from the given Pair of Comparable
values and applies the given value comparators. |
Copyright © 2011–2020 Nerd4j. All rights reserved.