public interface CharObjectPair<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 CharObjectPair<V> |
first(char l)
Sets the left element of this pair (optional operation).
|
default CharObjectPair<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 CharObjectPair<V> |
key(char l)
Sets the left element of this pair (optional operation).
|
default CharObjectPair<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 CharObjectPair<V> |
left(char l)
Sets the left element of this pair (optional operation).
|
default CharObjectPair<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> java.util.Comparator<CharObjectPair<V>> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static <V> CharObjectPair<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 CharObjectPair<V> left(char l)
l - a new value for the left element.@Deprecated default CharObjectPair<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 CharObjectPair<V> first(char l)
l - a new value for the left element.@Deprecated default CharObjectPair<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 CharObjectPair<V> key(char l)
l - a new value for the left element.@Deprecated default CharObjectPair<V> key(java.lang.Character l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>static <V> CharObjectPair<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.static <V> java.util.Comparator<CharObjectPair<V>> lexComparator()
The comparator returned by this method implements lexicographical order. It compares first the left elements: if the result of the comparison is nonzero, it returns said result. Otherwise, this comparator returns the result of the comparison of the right elements.
lexComparator in interface it.unimi.dsi.fastutil.Pair<java.lang.Character,V>