Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Complex o1,
Compare two complex numbers, using real ordering as the primary sort order and
imaginary ordering as the secondary sort order.
- Specified by:
compare in interface
o1 - first complex number
o2 - second complex number
- a negative value if o1 real part is less than o2 real part
or if real parts are equal and o1 imaginary part is less than o2 imaginary part
Copyright © 2016-2022 CS GROUP. All rights reserved.