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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public double getEpsilon()
public boolean equals(Object obj)
equals
in interface Comparator<Double>
equals
in class Object
public int compare(T o1, T o2)
compare
in interface Comparator<T>
Copyright © 2014–2019 AssertJ. All rights reserved.