public class Args extends Object
Modifier and Type | Method and Description |
---|---|
static void |
check(boolean expression,
String message) |
static void |
check(boolean expression,
String message,
Object... args) |
static void |
check(boolean expression,
String message,
Object arg) |
static long |
checkContentLength(EntityDetails entityDetails) |
static int |
checkRange(int value,
int lowInclusive,
int highInclusive,
String message) |
static long |
checkRange(long value,
long lowInclusive,
long highInclusive,
String message) |
static <T extends CharSequence> |
containsNoBlanks(T argument,
String name) |
static <T extends CharSequence> |
notBlank(T argument,
String name) |
static <E,T extends Collection<E>> |
notEmpty(T argument,
String name) |
static <T extends CharSequence> |
notEmpty(T argument,
String name) |
static int |
notNegative(int n,
String name) |
static long |
notNegative(long n,
String name) |
static <T> T |
notNull(T argument,
String name) |
static int |
positive(int n,
String name) |
static long |
positive(long n,
String name) |
static <T extends TimeValue> |
positive(T timeValue,
String name) |
public static void check(boolean expression, String message)
public static long checkContentLength(EntityDetails entityDetails)
public static int checkRange(int value, int lowInclusive, int highInclusive, String message)
public static long checkRange(long value, long lowInclusive, long highInclusive, String message)
public static <T extends CharSequence> T containsNoBlanks(T argument, String name)
public static <T extends CharSequence> T notBlank(T argument, String name)
public static <E,T extends Collection<E>> T notEmpty(T argument, String name)
public static <T extends CharSequence> T notEmpty(T argument, String name)
public static int notNegative(int n, String name)
public static long notNegative(long n, String name)
public static <T> T notNull(T argument, String name)
public static int positive(int n, String name)
public static long positive(long n, String name)