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