public interface DoubleShortPair extends Pair<java.lang.Double,java.lang.Short>
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 DoubleShortPair |
first(double l)
Sets the left element of this pair (optional operation).
|
default DoubleShortPair |
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 DoubleShortPair |
key(double l)
Sets the left element of this pair (optional operation).
|
default DoubleShortPair |
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 DoubleShortPair |
left(double l)
Sets the left element of this pair (optional operation).
|
default DoubleShortPair |
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<DoubleShortPair> |
lexComparator()
Returns a lexicographical comparator for pairs.
|
static DoubleShortPair |
of(double left,
short right)
Returns a new type-specific immutable
Pair with given left and right value. |
default java.lang.Short |
right()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleShortPair |
right(short r)
Sets the right element of this pair (optional operation).
|
default DoubleShortPair |
right(java.lang.Short l)
Deprecated.
Please use the corresponding type-specific method instead.
|
short |
rightShort()
Returns the right element of this pair.
|
default java.lang.Short |
second()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleShortPair |
second(short r)
Sets the right element of this pair (optional operation).
|
default DoubleShortPair |
second(java.lang.Short l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default short |
secondShort()
Returns the right element of this pair.
|
default java.lang.Short |
value()
Deprecated.
Please use the corresponding type-specific method instead.
|
default DoubleShortPair |
value(short r)
Sets the right element of this pair (optional operation).
|
default DoubleShortPair |
value(java.lang.Short l)
Deprecated.
Please use the corresponding type-specific method instead.
|
default short |
valueShort()
Returns the right element of this pair.
|
double leftDouble()
@Deprecated default java.lang.Double left()
default DoubleShortPair left(double l)
l
- a new value for the left element.UnsupportedOperationException
.@Deprecated default DoubleShortPair left(java.lang.Double l)
default double firstDouble()
left()
.@Deprecated default java.lang.Double first()
default DoubleShortPair first(double l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default DoubleShortPair first(java.lang.Double l)
default double keyDouble()
left()
.@Deprecated default java.lang.Double key()
default DoubleShortPair key(double l)
l
- a new value for the left element.Pair.left(Object)
.@Deprecated default DoubleShortPair key(java.lang.Double l)
Pair
short rightShort()
@Deprecated default java.lang.Short right()
default DoubleShortPair right(short r)
r
- a new value for the right element.UnsupportedOperationException
.@Deprecated default DoubleShortPair right(java.lang.Short l)
default short secondShort()
right()
.@Deprecated default java.lang.Short second()
default DoubleShortPair second(short r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default DoubleShortPair second(java.lang.Short l)
default short valueShort()
right()
.@Deprecated default java.lang.Short value()
default DoubleShortPair value(short r)
r
- a new value for the right element.Pair.right(Object)
.@Deprecated default DoubleShortPair value(java.lang.Short l)
static DoubleShortPair of(double left, short right)
Pair
with given left and right value.static java.util.Comparator<DoubleShortPair> 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.Short>