java.util.Objects#requireNonNull(Object, String) .
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | require(boolean
condition which must be fulfilled condition, String detail message to be used in the event that a message)IllegalArgumentException is thrownChecks that the specified condition is fulfilled and throws a customized |
| public static void | requireInRange(int
value to check number, int minimum allowed value min, int maximum allowed value max, String detail message to be used in the event that a message)IllegalArgumentException is thrownChecks that the specified number is within the specified minimum and maximum range (inclusively) and throws a
customized |
| Arguments | back to summary |
|---|---|
| public Arguments() | |
| require | back to summary |
|---|---|
| public static void require(boolean condition, String message) Checks that the specified condition is fulfilled and throws a customized
| |
| requireInRange | back to summary |
|---|---|
| public static void requireInRange(int number, int min, int max, String message) Checks that the specified number is within the specified minimum and maximum range (inclusively) and throws a
customized
| |