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