public final class ArgumentChecker extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
notNull(Object argument,
String name)
Throws an exception if the argument is not null.
|
static <E> void |
notNullOrEmpty(Collection<E> argument,
String name)
Throws an exception if the collection argument is not null or empty.
|
static <E> void |
notNullOrEmpty(E[] argument,
String name)
Throws an exception if the array argument is not null or empty.
|
static void |
notNullOrEmpty(String argument,
String name)
Throws an exception if the string argument is not null or empty.
|
public static void notNull(Object argument, String name)
argument - the object to checkname - the name of the parameterpublic static <E> void notNullOrEmpty(E[] argument,
String name)
E - type of arrayargument - the object to checkname - the name of the parameterpublic static <E> void notNullOrEmpty(Collection<E> argument, String name)
E - type of arrayargument - the object to checkname - the name of the parameterCopyright 2014-Present by Jim Moores
${javadoc.footer.license}