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