public interface DoubleLongPair
extends it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>
Pair; provides some additional methods that use polymorphism to avoid (un)boxing.| Modifier and Type | Method and Description |
|---|---|
default java.lang.Double |
first()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleLongPair |
first(double l)
Sets the left element of this pair (optional operation).
|
default DoubleLongPair |
first(java.lang.Double l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default double |
firstDouble()
Returns the left element of this pair.
|
default java.lang.Double |
key()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleLongPair |
key(double l)
Sets the left element of this pair (optional operation).
|
default DoubleLongPair |
key(java.lang.Double l)
Deprecated.
|
default double |
keyDouble()
Returns the left element of this pair.
|
default java.lang.Double |
left()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleLongPair |
left(double l)
Sets the left element of this pair (optional operation).
|
default DoubleLongPair |
left(java.lang.Double l)
Deprecated.
Please use the corresponding type-specific method instead.
|
double |
leftDouble()
Returns the left element of this pair.
|
static java.util.Comparator<DoubleLongPair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static DoubleLongPair |
of(double 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 DoubleLongPair |
right(long r)
Sets the right element of this pair (optional operation).
|
default DoubleLongPair |
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 DoubleLongPair |
second(long r)
Sets the right element of this pair (optional operation).
|
default DoubleLongPair |
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 DoubleLongPair |
value(long r)
Sets the right element of this pair (optional operation).
|
default DoubleLongPair |
value(java.lang.Long l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default long |
valueLong()
Returns the right element of this pair.
|
double leftDouble()
@Deprecated default java.lang.Double left()
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default DoubleLongPair left(double l)
l - a new value for the left element.@Deprecated default DoubleLongPair left(java.lang.Double l)
left in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default double firstDouble()
@Deprecated default java.lang.Double first()
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default DoubleLongPair first(double l)
l - a new value for the left element.@Deprecated default DoubleLongPair first(java.lang.Double l)
first in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default double keyDouble()
@Deprecated default java.lang.Double key()
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default DoubleLongPair key(double l)
l - a new value for the left element.@Deprecated default DoubleLongPair key(java.lang.Double l)
key in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>long rightLong()
@Deprecated default java.lang.Long right()
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default DoubleLongPair right(long r)
r - a new value for the right element.@Deprecated default DoubleLongPair right(java.lang.Long l)
right in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default long secondLong()
@Deprecated default java.lang.Long second()
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default DoubleLongPair second(long r)
r - a new value for the right element.@Deprecated default DoubleLongPair second(java.lang.Long l)
second in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default long valueLong()
@Deprecated default java.lang.Long value()
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>default DoubleLongPair value(long r)
r - a new value for the right element.@Deprecated default DoubleLongPair value(java.lang.Long l)
value in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>static DoubleLongPair of(double left, long right)
Pair with given left and right value.of in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Long>left - the left value.right - the right value.static java.util.Comparator<DoubleLongPair> 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.Double,java.lang.Long>