public class Checks extends Object
| Constructor and Description |
|---|
Checks() |
| Modifier and Type | Method and Description |
|---|---|
static void |
notEmpty(String argument,
String message,
Object... params)
Checks argument is not empty (not null and has a non-whitespace character)
|
static void |
notEmptyShort(String argument,
String name)
Checks argument is not empty (not null and has a non-whitespace character)
|
static void |
notNull(Object argument,
String message,
Object... params)
Checks value is not null
|
static void |
notNullShort(Object argument,
String name)
Checks value is not null
|
static <T extends Comparable<? super T>> |
withinRange(T min,
T max,
T value,
String message)
Checks if argument is within a range
|
static <T extends Comparable<? super T>> |
withinRangeShort(T min,
T max,
T value,
String name)
Checks if argument is within a range
|
public static void notNull(Object argument, String message, Object... params)
argument - message - params - IllegalStateExceptionpublic static void notEmpty(String argument, String message, Object... params)
argument - message - params - IllegalStateExceptionpublic static <T extends Comparable<? super T>> void withinRange(T min, T max, T value, String message)
T - min - max - value - message - IllegalStateExceptionpublic static void notNullShort(Object argument, String name)
argument - name - IllegalStateExceptionpublic static void notEmptyShort(String argument, String name)
argument - name - IllegalStateExceptionpublic static <T extends Comparable<? super T>> void withinRangeShort(T min, T max, T value, String name)
T - min - max - value - name - IllegalStateExceptionCopyright © 2006–2021 Apache Software Foundation. All rights reserved.