public interface ReferenceIntPair<K> extends Pair<K,java.lang.Integer>
Pair
; provides some additional methods that use polymorphism to avoid (un)boxing.Modifier and Type | Method and Description |
---|---|
static <K> ReferenceIntPair<K> |
of(K left,
int right)
Returns a new type-specific immutable
Pair with given left and right value. |
default java.lang.Integer |
right()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceIntPair<K> |
right(int r)
Sets the right element of this pair (optional operation).
|
default ReferenceIntPair<K> |
right(java.lang.Integer l)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
rightInt()
Returns the right element of this pair.
|
default java.lang.Integer |
second()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceIntPair<K> |
second(int r)
Sets the right element of this pair (optional operation).
|
default ReferenceIntPair<K> |
second(java.lang.Integer l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default int |
secondInt()
Returns the right element of this pair.
|
default java.lang.Integer |
value()
Deprecated.
Please use the corresponding type-specific method instead.
|
default ReferenceIntPair<K> |
value(int r)
Sets the right element of this pair (optional operation).
|
default ReferenceIntPair<K> |
value(java.lang.Integer l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default int |
valueInt()
Returns the right element of this pair.
|
int rightInt()
@Deprecated default java.lang.Integer right()
default ReferenceIntPair<K> right(int r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default ReferenceIntPair<K> right(java.lang.Integer l)
default int secondInt()
right()
.@Deprecated default java.lang.Integer second()
default ReferenceIntPair<K> second(int r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ReferenceIntPair<K> second(java.lang.Integer l)
default int valueInt()
right()
.@Deprecated default java.lang.Integer value()
default ReferenceIntPair<K> value(int r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default ReferenceIntPair<K> value(java.lang.Integer l)
static <K> ReferenceIntPair<K> of(K left, int right)
Pair
with given left and right value.