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