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 for
s.Long
- Author:
- Drummond Dawson, Alex Ruiz, Joel Costigliola, Cal027
-
-
Field Summary
Fields Modifier and Type Field Description private static Longs
INSTANCE
-
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 Long
absDiff(Long actual, Long other)
static Longs
instance()
Returns the singleton instance of this class.boolean
isEven(Long number)
protected boolean
isGreaterThan(Long value, Long other)
protected Long
one()
protected Long
zero()
-
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:
isGreaterThan
in classNumbers<Long>
-
isEven
public boolean isEven(Long number)
- Specified by:
isEven
in interfaceWholeNumbers<Long>
-
-