public class DoubleDoubleImmutableSortedPair extends DoubleDoubleImmutablePair implements DoubleDoubleSortedPair, java.io.Serializable
SortedPair; provides some additional methods that use polymorphism to avoid (un)boxing.left, right| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
static DoubleDoubleImmutableSortedPair |
of(double left,
double right)
Returns a new type-specific immutable
SortedPair with given left and right value. |
java.lang.String |
toString()
Returns a string representation of this sorted pair in the form {l,r}.
|
hashCode, leftDouble, rightDoubleclone, finalize, getClass, notify, notifyAll, wait, wait, waitcontains, containsfirst, first, first, firstDouble, key, key, key, keyDouble, left, left, left, leftDouble, lexComparator, right, right, right, rightDouble, second, second, second, secondDouble, value, value, value, valueDoublepublic static DoubleDoubleImmutableSortedPair of(double left, double right)
SortedPair with given left and right value.
Note that if left and right are in the wrong order, they will be exchanged.
of in interface DoubleDoublePairof in interface DoubleDoubleSortedPairof in interface it.unimi.dsi.fastutil.Pair<java.lang.Double,java.lang.Double>of in interface it.unimi.dsi.fastutil.SortedPair<java.lang.Double>left - the left value.right - the right value.public boolean equals(java.lang.Object other)
equals in class DoubleDoubleImmutablePairpublic java.lang.String toString()
toString in class DoubleDoubleImmutablePair