public final class DoublePair extends Object implements Comparable<DoublePair>
| Constructor and Description |
|---|
DoublePair(double first,
double second) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DoublePair otherPair)
Compare this pair to another pair for lexicographic ordering.
|
boolean |
equals(Object o) |
double |
first() |
int |
hashCode() |
double |
second() |
String |
toString() |
public double first()
public double second()
public int compareTo(@NonNull
DoublePair otherPair)
compareTo in interface Comparable<DoublePair>otherPair - the pair to compare this one to.Comparable.compareTo(Object) contract.