Package | Description |
---|---|
org.apache.commons.lang3.tuple |
Tuple classes, starting with a Pair class in version 3.0.
|
Modifier and Type | Class and Description |
---|---|
class |
ImmutableTriple<L,M,R>
An immutable triple consisting of three
Object elements. |
class |
MutableTriple<L,M,R>
A mutable triple consisting of three
Object elements. |
Modifier and Type | Field and Description |
---|---|
static Triple<?,?,?>[] |
Triple.EMPTY_ARRAY
An empty array.
|
Modifier and Type | Method and Description |
---|---|
static <L,M,R> Triple<L,M,R>[] |
Triple.emptyArray()
Returns the empty array singleton that can be assigned without compiler warning.
|
static <L,M,R> Triple<L,M,R> |
Triple.of(L left,
M middle,
R right)
Obtains an immutable triple of three objects inferring the generic types.
|
Modifier and Type | Method and Description |
---|---|
int |
Triple.compareTo(Triple<L,M,R> other)
Compares the triple based on the left element, followed by the middle element,
finally the right element.
|
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.