Modifier and Type | Method and Description |
---|---|
static void |
checkArgument(boolean condition,
String errorMessage) |
static void |
checkArgumentNotEmpty(String argument) |
static void |
checkArgumentNotNull(Object argument) |
static void |
checkArgumentsNotNull(Object... arguments) |
static boolean |
isFalsy(Object value) |
static boolean |
isNullOrEmpty(Collection<?> collection) |
static boolean |
isNullOrEmpty(Map<?,?> map) |
public static void checkArgument(boolean condition, String errorMessage)
public static void checkArgumentsNotNull(Object... arguments)
public static void checkArgumentNotNull(Object argument)
public static void checkArgumentNotEmpty(String argument)
public static boolean isNullOrEmpty(Collection<?> collection)
public static boolean isNullOrEmpty(Map<?,?> map)
public static boolean isFalsy(Object value)
value
- true
if the value is null
, Boolean of
value false, Number of value 0, or empty
CharSequence/Collection/Array, false
otherwiseCopyright © 2017. All rights reserved.