public interface LongLongPair
extends it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>
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 LongLongPair |
first(long l)
Sets the left element of this pair (optional operation).
|
default LongLongPair |
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 LongLongPair |
key(long l)
Sets the left element of this pair (optional operation).
|
default LongLongPair |
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 LongLongPair |
left(long l)
Sets the left element of this pair (optional operation).
|
default LongLongPair |
left(java.lang.Long l)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
leftLong()
Returns the left element of this pair.
|
static java.util.Comparator<LongLongPair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static LongLongPair |
of(long left,
long right)
Returns a new type-specific immutable
Pair with given left and right value. |
default java.lang.Long |
right()
Deprecated.
Please use the corresponding type-specific method instead.
|
default LongLongPair |
right(long r)
Sets the right element of this pair (optional operation).
|
default LongLongPair |
right(java.lang.Long l)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
rightLong()
Returns the right element of this pair.
|
default java.lang.Long |
second()
Deprecated.
Please use the corresponding type-specific method instead.
|
default LongLongPair |
second(long r)
Sets the right element of this pair (optional operation).
|
default LongLongPair |
second(java.lang.Long l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default long |
secondLong()
Returns the right element of this pair.
|
default java.lang.Long |
value()
Deprecated.
Please use the corresponding type-specific method instead.
|
default LongLongPair |
value(long r)
Sets the right element of this pair (optional operation).
|
default LongLongPair |
value(java.lang.Long l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default long |
valueLong()
Returns the right element of this pair.
|
long leftLong()
@Deprecated default java.lang.Long left()
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default LongLongPair left(long l)
l - a new value for the left element.@Deprecated default LongLongPair left(java.lang.Long l)
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default long firstLong()
@Deprecated default java.lang.Long first()
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default LongLongPair first(long l)
l - a new value for the left element.@Deprecated default LongLongPair first(java.lang.Long l)
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default long keyLong()
@Deprecated default java.lang.Long key()
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default LongLongPair key(long l)
l - a new value for the left element.@Deprecated default LongLongPair key(java.lang.Long l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>long rightLong()
@Deprecated default java.lang.Long right()
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default LongLongPair right(long r)
r - a new value for the right element.@Deprecated default LongLongPair right(java.lang.Long l)
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default long secondLong()
@Deprecated default java.lang.Long second()
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default LongLongPair second(long r)
r - a new value for the right element.@Deprecated default LongLongPair second(java.lang.Long l)
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default long valueLong()
@Deprecated default java.lang.Long value()
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>default LongLongPair value(long r)
r - a new value for the right element.@Deprecated default LongLongPair value(java.lang.Long l)
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>static LongLongPair of(long left, long right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<java.lang.Long,java.lang.Long>left - the left value.right - the right value.static java.util.Comparator<LongLongPair> 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,java.lang.Long>