Package org.assertj.core.internal
Interface WholeNumbers<NUMBER extends Number>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
assertIsEven(AssertionInfo info, NUMBER actual)
Asserts that the actual value is even.default void
assertIsOdd(AssertionInfo info, NUMBER actual)
Asserts that the actual value is odd.boolean
isEven(NUMBER number)
default boolean
isOdd(NUMBER number)
-
-
-
Method Detail
-
isEven
boolean isEven(NUMBER number)
-
isOdd
default boolean isOdd(NUMBER number)
-
assertIsOdd
default void assertIsOdd(AssertionInfo info, NUMBER actual)
Asserts that the actual value is odd.- Parameters:
info
- contains information about the assertion.actual
- the actual value.- Throws:
AssertionError
- if the actual value isnull
.
-
assertIsEven
default void assertIsEven(AssertionInfo info, NUMBER actual)
Asserts that the actual value is even.- Parameters:
info
- contains information about the assertion.actual
- the actual value.- Throws:
AssertionError
- if the actual value isnull
.
-
-