public interface IntObjectPair<V>
extends it.unimi.dsi.fastutil.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 IntObjectPair<V> |
first(int l)
Sets the left element of this pair (optional operation).
|
default IntObjectPair<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 IntObjectPair<V> |
key(int l)
Sets the left element of this pair (optional operation).
|
default IntObjectPair<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 IntObjectPair<V> |
left(int l)
Sets the left element of this pair (optional operation).
|
default IntObjectPair<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> java.util.Comparator<IntObjectPair<V>> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static <V> IntObjectPair<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()
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Integer,V>default IntObjectPair<V> left(int l)
l - a new value for the left element.@Deprecated default IntObjectPair<V> left(java.lang.Integer l)
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Integer,V>default int firstInt()
@Deprecated default java.lang.Integer first()
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Integer,V>default IntObjectPair<V> first(int l)
l - a new value for the left element.@Deprecated default IntObjectPair<V> first(java.lang.Integer l)
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Integer,V>default int keyInt()
@Deprecated default java.lang.Integer key()
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Integer,V>default IntObjectPair<V> key(int l)
l - a new value for the left element.@Deprecated default IntObjectPair<V> key(java.lang.Integer l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Integer,V>static <V> IntObjectPair<V> of(int left, V right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<java.lang.Integer,V>left - the left value.right - the right value.static <V> java.util.Comparator<IntObjectPair<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.Integer,V>