| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | |
| public static void | |
| public static long | checkContentLength(final EntityDetails entityDetails)
Deprecated
Use
checkRange(long, long, long, String).
|
| public static int | |
| public static long | checkRange(final long value, final long lowInclusive, final long highInclusive, final String message)
|
| public static <T extends CharSequence> T | |
| private static IllegalArgumentException | |
| private static IllegalArgumentException | |
| public static boolean | |
| public static <T extends CharSequence> T | |
| public static <T extends CharSequence> T | |
| public static <E, T extends Collection | |
| public static <T> T | |
| public static int | |
| public static long | |
| public static < the object type T> T | |
| private static NullPointerException | |
| public static int | |
| public static long | |
| public static <T extends TimeValue> T |
| Args | back to summary |
|---|---|
| private Args() Private constructor so that no instances can be created. This class contains only static utility methods. | |
| check | back to summary |
|---|---|
| public static void check(final boolean expression, final String message) | |
| check | back to summary |
|---|---|
| public static void check(final boolean expression, final String message, final Object... args) | |
| check | back to summary |
|---|---|
| public static void check(final boolean expression, final String message, final Object arg) | |
| checkContentLength | back to summary |
|---|---|
| public static long checkContentLength(final EntityDetails entityDetails)
Deprecated
| |
| checkRange | back to summary |
|---|---|
| public static int checkRange(final int value, final int lowInclusive, final int highInclusive, final String message) | |
| checkRange | back to summary |
|---|---|
| public static long checkRange(final long value, final long lowInclusive, final long highInclusive, final String message) | |
| containsNoBlanks | back to summary |
|---|---|
| public static <T extends CharSequence> T containsNoBlanks(final T argument, final String name) | |
| illegalArgumentException | back to summary |
|---|---|
| private static IllegalArgumentException illegalArgumentException(final String format, final Object... args) | |
| illegalArgumentExceptionNotEmpty | back to summary |
|---|---|
| private static IllegalArgumentException illegalArgumentExceptionNotEmpty(final String name) | |
| isEmpty | back to summary |
|---|---|
| public static boolean isEmpty(final Object object) Checks if an Object is empty or null. The following types are supported:
Args.isEmpty(null) = true
Args.isEmpty("") = true
Args.isEmpty("ab") = false
Args.isEmpty(new int[]{}) = true
Args.isEmpty(new int[]{1,2,3}) = false
Args.isEmpty(1234) = false
| |
| notBlank | back to summary |
|---|---|
| public static <T extends CharSequence> T notBlank(final T argument, final String name) | |
| notEmpty | back to summary |
|---|---|
| public static <T extends CharSequence> T notEmpty(final T argument, final String name) | |
| notEmpty | back to summary |
|---|---|
| public static <E, T extends Collection | |
| notEmpty | back to summary |
|---|---|
| public static <T> T notEmpty(final T argument, final String name) | |
| notNegative | back to summary |
|---|---|
| public static int notNegative(final int n, final String name) | |
| notNegative | back to summary |
|---|---|
| public static long notNegative(final long n, final String name) | |
| notNull | back to summary |
|---|---|
| public static <T> T notNull(final T argument, final String name) Validate that the specified argument is not Args.notNull(myObject, "The object must not be null");
| |
| NullPointerException | back to summary |
|---|---|
| private static NullPointerException NullPointerException(final String name) | |
| positive | back to summary |
|---|---|
| public static int positive(final int n, final String name) | |
| positive | back to summary |
|---|---|
| public static long positive(final long n, final String name) | |
| positive | back to summary |
|---|---|
| public static <T extends TimeValue> T positive(final T timeValue, final String name) | |