public interface CharReferencePair<V>
extends it.unimi.dsi.fastutil.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()
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>default CharReferencePair<V> left(char l)
l - a new value for the left element.@Deprecated default CharReferencePair<V> left(java.lang.Character l)
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>default char firstChar()
@Deprecated default java.lang.Character first()
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>default CharReferencePair<V> first(char l)
l - a new value for the left element.@Deprecated default CharReferencePair<V> first(java.lang.Character l)
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>default char keyChar()
@Deprecated default java.lang.Character key()
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>default CharReferencePair<V> key(char l)
l - a new value for the left element.@Deprecated default CharReferencePair<V> key(java.lang.Character l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>static <V> CharReferencePair<V> of(char left, V right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>left - the left value.right - the right value.