Package | Description |
---|---|
org.apache.commons.lang3.builder |
Assists in creating consistent
equals(Object) , toString() , hashCode() , and compareTo(Object) methods. |
org.apache.commons.lang3.exception |
Provides functionality for Exceptions.
|
org.apache.commons.lang3.tuple |
Tuple classes, starting with a Pair class in version 3.0.
|
Modifier and Type | Class and Description |
---|---|
class |
Diff<T>
A
Diff contains the differences between two Diffable class
fields. |
Modifier and Type | Method and Description |
---|---|
List<Pair<String,Object>> |
ContextedException.getContextEntries()
Retrieves the full list of label-value pairs defined in the contextual data.
|
List<Pair<String,Object>> |
ContextedRuntimeException.getContextEntries()
Retrieves the full list of label-value pairs defined in the contextual data.
|
List<Pair<String,Object>> |
DefaultExceptionContext.getContextEntries()
Retrieves the full list of label-value pairs defined in the contextual data.
|
List<Pair<String,Object>> |
ExceptionContext.getContextEntries()
Retrieves the full list of label-value pairs defined in the contextual data.
|
Modifier and Type | Class and Description |
---|---|
class |
ImmutablePair<L,R>
An immutable pair consisting of two
Object elements. |
class |
MutablePair<L,R>
A mutable pair consisting of two
Object elements. |
Modifier and Type | Field and Description |
---|---|
static Pair<?,?>[] |
Pair.EMPTY_ARRAY
An empty array.
|
Modifier and Type | Method and Description |
---|---|
static <L,R> Pair<L,R>[] |
Pair.emptyArray()
Returns the empty array singleton that can be assigned without compiler warning.
|
static <L,R> Pair<L,R> |
ImmutablePair.left(L left)
Creates an immutable pair of two objects inferring the generic types.
|
static <L,R> Pair<L,R> |
Pair.of(L left,
R right)
Creates an immutable pair of two objects inferring the generic types.
|
static <L,R> Pair<L,R> |
Pair.of(Map.Entry<L,R> pair)
Creates an immutable pair from an existing pair.
|
static <L,R> Pair<L,R> |
ImmutablePair.right(R right)
Creates an immutable pair of two objects inferring the generic types.
|
Modifier and Type | Method and Description |
---|---|
int |
Pair.compareTo(Pair<L,R> other)
Compares the pair based on the left element followed by the right element.
|
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.