Object elements.
Although the implementation is immutable, there is no restriction on the objects that may be stored. If mutable objects are stored in the triple, then the triple itself effectively becomes mutable.
#ThreadSafe# if all three objects are thread-safe.
| Modifier and Type | Field and Description |
|---|---|
| public static final ImmutableTriple | EMPTY_ARRAY
An empty array.
|
| public final L | left
Left object. |
| public final M | middle
Middle object. |
| private static final ImmutableTriple | NULL
An immutable triple of nulls. |
| public final R | right
Right object. |
| private static final long | serialVersionUID
Hides org. |
| Access | Constructor and Description |
|---|---|
| public | ImmutableTriple(final L
the left value, may be null. left, final M the middle value, may be null. middle, final R the right value, may be null. right)Constructs a new triple instance. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the left element type. L, the middle element type. M, the right element type. R> ImmutableTriple | Returns: the empty array singleton that can be assigned without compiler warning.Hides org. Gets the empty array singleton that can be assigned without compiler warning. |
| public L | getLeft()
Implements abstract org. Gets the left element from this triple. |
| public M | getMiddle()
Implements abstract org. Gets the middle element from this triple. |
| public R | getRight()
Implements abstract org. Gets the right element from this triple. |
| public static < the left element of this triple. Value is L, null.the middle element of this triple. Value is M, null.the right element of this triple. Value is R> ImmutableTriplenull. | |
| public static < the left element type. L, the middle element type. M, the right element type. R> ImmutableTriple | Returns: an immutable triple formed from the three parameters, not null.the left element, may be null. left, final M the middle element, may be null. middle, final R the right element, may be null. right)Hides org. Creates an immutable triple of three objects inferring the generic types. |
| public static < the left element type. L, the middle element type. M, the right element type. R> ImmutableTriple | Returns: an immutable triple formed from the three parameters, not null.the left element, may not be null. left, final M the middle element, may not be null. middle, final R the right element, may not be null. right)Hides org. Creates an immutable triple of three non-null objects inferring the generic types. |
| EMPTY_ARRAY | back to summary |
|---|---|
| public static final ImmutableTriple<?, ?, ?>[] EMPTY_ARRAY Hides org. An empty array.
Consider using
| |
| left | back to summary |
|---|---|
| public final L left Left object. | |
| middle | back to summary |
|---|---|
| public final M middle Middle object. | |
| NULL | back to summary |
|---|---|
| private static final ImmutableTriple<L, M, R> NULL An immutable triple of nulls.
| |
| right | back to summary |
|---|---|
| public final R right Right object. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. Serialization version. | |
| ImmutableTriple | back to summary |
|---|---|
| public ImmutableTriple(final L left, final M middle, final R right) Constructs a new triple instance.
| |
| emptyArray | back to summary |
|---|---|
| public static <L, M, R> ImmutableTriple Hides org. Gets 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 triple.
| |
| getMiddle | back to summary |
|---|---|
| public M getMiddle() Implements abstract org. Doc from org. Gets the middle element from this triple.
| |
| getRight | back to summary |
|---|---|
| public R getRight() Implements abstract org. Doc from org. Gets the right element from this triple.
| |
| nullTriple | back to summary |
|---|---|
| public static <L, M, R> ImmutableTriple Gets the immutable triple of nulls singleton.
| |
| of | back to summary |
|---|---|
| public static <L, M, R> ImmutableTriple Hides org. Creates an immutable triple of three objects inferring the generic types.
| |
| ofNonNull | back to summary |
|---|---|
| public static <L, M, R> ImmutableTriple Hides org. Creates an immutable triple of three non-null objects inferring the generic types.
| |