Package org.assertj.core.util
Class DoubleComparator
- java.lang.Object
-
- org.assertj.core.util.DoubleComparator
-
- All Implemented Interfaces:
Comparator<Double>
public class DoubleComparator extends Object implements Comparator<Double>
-
-
Constructor Summary
Constructors Constructor Description DoubleComparator(double epsilon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Double x, Double y)
boolean
equals(Object obj)
double
getEpsilon()
int
hashCode()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(Double x, Double y)
- Specified by:
compare
in interfaceComparator<Double>
-
getEpsilon
public double getEpsilon()
-
-