public class ComplexComparator extends Object implements Comparator<Complex>, Serializable
Constructor and Description |
---|
ComplexComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Complex o1,
Complex o2)
Compare two complex numbers, using real ordering as the primary sort order and
imaginary ordering as the secondary sort order.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Complex o1, Complex o2)
compare
in interface Comparator<Complex>
o1
- first complex numbero2
- second complex numberCopyright © 2016–2020 Hipparchus.org. All rights reserved.