Package org.assertj.core.util
Class DoubleComparator
- All Implemented Interfaces:
Comparator<Double>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleancloseEnough(Double x, Double y, double epsilon) protected intcompareNonNull(Double x, Double y) booleandoubleinthashCode()toString()Methods inherited from class org.assertj.core.util.NullSafeComparator
compareMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
precision
private double precision
-
-
Constructor Details
-
DoubleComparator
public DoubleComparator(double epsilon)
-
-
Method Details
-
compareNonNull
- Specified by:
compareNonNullin classNullSafeComparator<Double>
-
getEpsilon
public double getEpsilon() -
closeEnough
-
hashCode
public int hashCode() -
equals
- Specified by:
equalsin interfaceComparator<Double>- Overrides:
equalsin classObject
-
toString
-