Package org.assertj.core.internal
Class Longs
- java.lang.Object
-
- org.assertj.core.internal.Comparables
-
- org.assertj.core.internal.Numbers<Long>
-
- org.assertj.core.internal.Longs
-
- All Implemented Interfaces:
WholeNumbers<Long>
public class Longs extends Numbers<Long> implements WholeNumbers<Long>
Reusable assertions fors.Long- Author:
- Drummond Dawson, Alex Ruiz, Joel Costigliola, Cal027
-
-
Field Summary
Fields Modifier and Type Field Description private static LongsINSTANCE-
Fields inherited from class org.assertj.core.internal.Comparables
failures
-
-
Constructor Summary
Constructors Constructor Description Longs()Longs(ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected LongabsDiff(Long actual, Long other)static Longsinstance()Returns the singleton instance of this class.booleanisEven(Long number)protected booleanisGreaterThan(Long value, Long other)protected Longone()protected Longzero()-
Methods inherited from class org.assertj.core.internal.Numbers
areEqual, assertIsBetween, assertIsCloseTo, assertIsCloseToPercentage, assertIsNegative, assertIsNotCloseTo, assertIsNotCloseToPercentage, assertIsNotNegative, assertIsNotPositive, assertIsNotZero, assertIsOne, assertIsPositive, assertIsStrictlyBetween, assertIsZero, isGreaterThanOrEqualTo
-
Methods inherited from class org.assertj.core.internal.Comparables
areEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertIsAfter, assertIsAfterOrEqualTo, assertIsBefore, assertIsBeforeOrEqualTo, assertIsBetween, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, checkBoundsValidity, equals, getComparator, hashCode, resetFailures, setFailures, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.assertj.core.internal.WholeNumbers
assertIsEven, assertIsOdd, isOdd
-
-
-
-
Field Detail
-
INSTANCE
private static final Longs INSTANCE
-
-
Constructor Detail
-
Longs
Longs()
-
Longs
public Longs(ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
instance
public static Longs instance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
isGreaterThan
protected boolean isGreaterThan(Long value, Long other)
- Specified by:
isGreaterThanin classNumbers<Long>
-
isEven
public boolean isEven(Long number)
- Specified by:
isEvenin interfaceWholeNumbers<Long>
-
-