| Package | Description |
|---|---|
| org.nerd4j.utils.tuple |
| Modifier and Type | Method and Description |
|---|---|
<R extends Comparable<R>> |
ComparablePair.Builder.andRight(R value)
Creates a new
ComparablePair with
the given right value. |
<R extends Comparable<R>> |
ComparablePair.Builder.andRight(R value,
boolean nullLast)
Creates a new
ComparablePair with
the given right values. |
<R> ComparablePair<L,R> |
ComparablePair.Builder.andRight(R value,
Comparator<R> comparator)
Creates a new
ComparablePair with
the given right values. |
static <L,R> ComparablePair<L,R> |
ComparablePair.empty()
Returns the singleton instance of an empty
ComparablePair. |
static <L extends Comparable<L>,R extends Comparable<R>> |
ComparablePair.of(L left,
boolean leftNullLast,
R right,
boolean rightNullLast)
Creates a new
ComparablePair with
the given values. |
static <L,R> ComparablePair<L,R> |
ComparablePair.of(L left,
Comparator<L> leftComparator,
R right,
Comparator<R> rightComparator)
Creates a new
ComparablePair with
the given values. |
static <L extends Comparable<L>,R extends Comparable<R>> |
ComparablePair.of(L left,
R right)
Creates a new
ComparablePair with
the given Comparable values. |
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. |
| Modifier and Type | Method and Description |
|---|---|
int |
ComparablePair.compareTo(ComparablePair<L,R> other) |
Copyright © 2011–2020 Nerd4j. All rights reserved.