Object elements.
Not #ThreadSafe#
| Modifier and Type | Field and Description |
|---|---|
| public static final MutablePair | EMPTY_ARRAY
An empty array.
|
| public L | left
Left object. |
| public R | right
Right object. |
| private static final long | serialVersionUID
Serialization version
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | MutablePair(final L
the left value, may be null. left, final R the right value, may be null. right)Create a new pair instance. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the left element type. L, the right element type. R> MutablePair | Returns: the empty array singleton that can be assigned without compiler warning.Hides org. Returns the empty array singleton that can be assigned without compiler warning. |
| public L | getLeft()
Implements abstract org. Gets the left element from this pair. |
| public R | getRight()
Implements abstract org. Gets the right element from this pair. |
| public static < the left element type. L, the right element type. R> MutablePair | Returns: a mutable pair formed from the two parameters, not null.the left element, may be null. left, final R the right element, may be null. right)Hides org. Creates a mutable pair of two objects inferring the generic types. |
| public static < the left element type. L, the right element type. R> MutablePair | Returns: a mutable pair formed from the map entry.the existing map entry. pairHides org. Creates a mutable pair from a map entry. |
| public static < the left element type. L, the right element type. R> MutablePair | Returns: a mutable pair formed from the two parameters, not null.the left element, may not be null. left, final R the right element, may not be null. right)Hides org. Creates a mutable pair of two non-null objects inferring the generic types. |
| public static < the left element type L, the right element type R> MutablePair | |
| public void | setLeft(final L
the new value of the left element, may be null. left)Sets the left element of the pair. |
| public void | setRight(final R
the new value of the right element, may be null. right)Sets the right element of the pair. |
| public R | Returns: the old value for the right element.the right value to set, not null. value)Implements java. Sets the |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final MutablePair<?, ?>[] EMPTY_ARRAY Hides org. An empty array.
Consider using
| |
| left | back to summary |
|---|---|
| public L left Left object. | |
| right | back to summary |
|---|---|
| public R right Right object. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serialization version | |
| MutablePair | back to summary |
|---|---|
| public MutablePair() Create a new pair instance of two nulls. | |
| MutablePair | back to summary |
|---|---|
| public MutablePair(final L left, final R right) Create a new pair instance.
| |
| emptyArray | back to summary |
|---|---|
| public static <L, R> MutablePair Hides org. Returns the empty array singleton that can be assigned without compiler warning.
| |
| getLeft | back to summary |
|---|---|
| public L getLeft() Implements abstract org. Doc from org. Gets the left element from this pair. When treated as a key-value pair, this is the key.
| |
| getRight | back to summary |
|---|---|
| public R getRight() Implements abstract org. Doc from org. Gets the right element from this pair. When treated as a key-value pair, this is the value.
| |
| of | back to summary |
|---|---|
| public static <L, R> MutablePair Hides org. Creates a mutable pair of two objects inferring the generic types.
| |
| of | back to summary |
|---|---|
| public static <L, R> MutablePair Hides org. Creates a mutable pair from a map entry.
| |
| ofNonNull | back to summary |
|---|---|
| public static <L, R> MutablePair Hides org. Creates a mutable pair of two non-null objects inferring the generic types.
| |
| ofNonNull | back to summary |
|---|---|
| public static <L, R> MutablePair Creates a mutable pair from a map entry.
| |
| setLeft | back to summary |
|---|---|
| public void setLeft(final L left) Sets the left element of the pair.
| |
| setRight | back to summary |
|---|---|
| public void setRight(final R right) Sets the right element of the pair.
| |
| setValue | back to summary |
|---|---|
| public R setValue(final R value) Implements java. Sets the
| |