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