Package | Description |
---|---|
org.apache.commons.lang3.tuple |
Tuple classes, starting with a Pair class in version 3.0.
|
Modifier and Type | Field and Description |
---|---|
static ImmutablePair<?,?>[] |
ImmutablePair.EMPTY_ARRAY
An empty array.
|
Modifier and Type | Method and Description |
---|---|
static <L,R> ImmutablePair<L,R>[] |
ImmutablePair.emptyArray()
Returns the empty array singleton that can be assigned without compiler warning.
|
static <L,R> ImmutablePair<L,R> |
ImmutablePair.nullPair()
Returns an immutable pair of nulls.
|
static <L,R> ImmutablePair<L,R> |
ImmutablePair.of(L left,
R right)
Creates an immutable pair of two objects inferring the generic types.
|
static <L,R> ImmutablePair<L,R> |
ImmutablePair.of(Map.Entry<L,R> pair)
Creates an immutable pair from an existing pair.
|
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.