public class Pair extends Object implements Comparable<Pair>
Constructor and Description |
---|
Pair(double x,
double y)
Construct a pair.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Pair that) |
boolean |
equals(Object obj) |
int |
hashCode() |
double |
x()
x
|
double |
y()
y
|
public double x()
public double y()
public int compareTo(Pair that)
compareTo
in interface Comparable<Pair>
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.