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