Package org.assertj.core.internal
Class Bytes
- java.lang.Object
-
- org.assertj.core.internal.Comparables
-
- org.assertj.core.internal.Numbers<Byte>
-
- org.assertj.core.internal.Bytes
-
- All Implemented Interfaces:
WholeNumbers<Byte>
public class Bytes extends Numbers<Byte> implements WholeNumbers<Byte>
Reusable assertions for
s.Byte
- Author:
- Drummond Dawson, Alex Ruiz, Joel Costigliola, Cal027
-
-
Field Summary
Fields Modifier and Type Field Description private static Bytes
INSTANCE
-
Fields inherited from class org.assertj.core.internal.Comparables
failures
-
-
Constructor Summary
Constructors Constructor Description Bytes()
Bytes(ComparisonStrategy comparisonStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Byte
absDiff(Byte actual, Byte other)
static Bytes
instance()
Returns the singleton instance of this class.boolean
isEven(Byte number)
protected boolean
isGreaterThan(Byte value, Byte other)
protected Byte
one()
protected Byte
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 Bytes INSTANCE
-
-
Constructor Detail
-
Bytes
Bytes()
-
Bytes
public Bytes(ComparisonStrategy comparisonStrategy)
-
-
Method Detail
-
instance
public static Bytes instance()
Returns the singleton instance of this class.- Returns:
- the singleton instance of this class.
-
isGreaterThan
protected boolean isGreaterThan(Byte value, Byte other)
- Specified by:
isGreaterThan
in classNumbers<Byte>
-
isEven
public boolean isEven(Byte number)
- Specified by:
isEven
in interfaceWholeNumbers<Byte>
-
-