Serializable
, Comparator<Complex>
public class ComplexComparator extends Object implements Comparator<Complex>, Serializable
Constructor | Description |
---|---|
ComplexComparator() |
Modifier and Type | Method | 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.
|
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–2018 Hipparchus.org. All rights reserved.