| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | checkArgument(boolean
The boolean check check, String The name of the value that is checked in the method valueName)Checks that the argument is valid, based in a check boolean condition. |
| public static String | Returns: The same String passed as argumentThe String to check value, String The name of the value that is checked in the method valueName)Checks that the String is not null and not empty |
| public static < The type of the value T> T | Returns: The same value passed as argumentThe value to be checked value, String The name of the value that is checked in the method valueName)Checks that the argument is not null. |
| public static int |
| Preconditions | back to summary |
|---|---|
| public Preconditions() | |
| checkArgument | back to summary |
|---|---|
| public static void checkArgument(boolean check, String valueName) throws IllegalArgumentException Checks that the argument is valid, based in a check boolean condition.
| |
| checkNotEmpty | back to summary |
|---|---|
| public static String checkNotEmpty(String value, String valueName) throws IllegalArgumentException Checks that the String is not null and not empty
| |
| checkNotNull | back to summary |
|---|---|
| public static <T> T checkNotNull(T value, String valueName) throws IllegalArgumentException Checks that the argument is not null.
| |
| gt0 | back to summary |
|---|---|
| public static int gt0(int value, String valueName) throws IllegalArgumentException Checks that the integer argument is positive.
| |