Package org.assertj.core.util
Class AbstractComparableNumberComparator<T extends Number & Comparable<T>>
- java.lang.Object
-
- org.assertj.core.util.NullSafeComparator<T>
-
- org.assertj.core.util.AbstractComparableNumberComparator<T>
-
- All Implemented Interfaces:
Comparator<T>
- Direct Known Subclasses:
BigDecimalComparator
,BigIntegerComparator
public abstract class AbstractComparableNumberComparator<T extends Number & Comparable<T>> extends NullSafeComparator<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractComparableNumberComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareNonNull(T number1, T number2)
-
Methods inherited from class org.assertj.core.util.NullSafeComparator
compare
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compareNonNull
public int compareNonNull(T number1, T number2)
- Specified by:
compareNonNull
in classNullSafeComparator<T extends Number & Comparable<T>>
-
-