Package org.assertj.core.internal
Interface WholeNumbers<NUMBER extends Number>
public interface WholeNumbers<NUMBER extends Number>
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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
default boolean
-
Method Details
-
isEven
-
isOdd
-
assertIsOdd
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
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
.
-