public class StrictOrderingDoubleComparator extends Object implements Comparator<Double>, Serializable
| Constructor and Description |
|---|
StrictOrderingDoubleComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Double lhs,
Double rhs)
Need to compare bits to handle 0.0 eq -0.0 being true.
|
boolean |
equals(Object obj) |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(Double lhs, Double rhs)
compare in interface Comparator<Double>lhs - the left hand side comparablerhs - the right hand side comparablepublic boolean equals(Object obj)
equals in interface Comparator<Double>equals in class ObjectCopyright © 2017. All rights reserved.