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