Package org.assertj.core.util
Class FloatComparator
- All Implemented Interfaces:
Comparator<Float>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleancloseEnough(Float x, Float y, float epsilon) intcompareNonNull(Float x, Float y) booleanfloatinthashCode()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 float precision
-
-
Constructor Details
-
FloatComparator
public FloatComparator(float epsilon)
-
-
Method Details
-
getEpsilon
public float getEpsilon() -
compareNonNull
- Specified by:
compareNonNullin classNullSafeComparator<Float>
-
closeEnough
-
hashCode
public int hashCode() -
equals
- Specified by:
equalsin interfaceComparator<Float>- Overrides:
equalsin classObject
-
toString
-