It is not a part of the API!
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | checkArgument(final boolean
the expression that has to be expression, final String truethe exception message to be thrown errorMessage)Checks the given argument and throws an exception if not met. |
| public static void | checkArgument(final boolean
the expression that has to be expression, final Supplier<String> truea supplier for the exception message to be thrown errorMessageSupplier)Checks the given argument and throws an exception if not met. |
| Preconditions | back to summary |
|---|---|
| private Preconditions() | |
| checkArgument | back to summary |
|---|---|
| public static void checkArgument(final boolean expression, final String errorMessage) Checks the given argument and throws an exception if not met.
| |
| checkArgument | back to summary |
|---|---|
| public static void checkArgument(final boolean expression, final Supplier<String> errorMessageSupplier) Checks the given argument and throws an exception if not met.
| |