public class DoubleComparator extends Object
| Constructor and Description |
|---|
DoubleComparator(double epsilon) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(T o1,
T o2) |
protected int |
compareNonNull(Double x,
Double y) |
boolean |
equals(Object obj) |
double |
getEpsilon() |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic double getEpsilon()
public boolean equals(Object obj)
equals in interface Comparator<Double>equals in class Objectpublic int compare(T o1,
T o2)
compare in interface Comparator<T>Copyright © 2014–2019 AssertJ. All rights reserved.