public interface DoubleLongPair extends 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()
default DoubleLongPair left(double l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default DoubleLongPair left(java.lang.Double l)
default double firstDouble()
left()
.@Deprecated default java.lang.Double first()
default DoubleLongPair first(double l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default DoubleLongPair first(java.lang.Double l)
default double keyDouble()
left()
.@Deprecated default java.lang.Double key()
default DoubleLongPair key(double l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default DoubleLongPair key(java.lang.Double l)
Pair
long rightLong()
@Deprecated default java.lang.Long right()
default DoubleLongPair right(long r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default DoubleLongPair right(java.lang.Long l)
default long secondLong()
right()
.@Deprecated default java.lang.Long second()
default DoubleLongPair second(long r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default DoubleLongPair second(java.lang.Long l)
default long valueLong()
right()
.@Deprecated default java.lang.Long value()
default DoubleLongPair value(long r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default DoubleLongPair value(java.lang.Long l)
static DoubleLongPair of(double left, long right)
Pair
with given left and 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 Pair<java.lang.Double,java.lang.Long>