public final class ArgumentCheck extends Object
Modifier and Type | Method and Description |
---|---|
static <T> void |
notNull(T arg,
String name)
Checks to make sure the argument object is not null.
|
static void |
notNullOrEmpty(String arg,
String name)
Checks to make sure a string is not null or empty.
|
public static void notNullOrEmpty(String arg, String name)
IllegalArgumentException
if expectation is not met.arg
- Argument to checkname
- Name of the argumentIllegalArgumentException
- if expectation is not metpublic static <T> void notNull(T arg, String name)
T
- The type of the objectarg
- The argument to checkname
- The name of the argumentIllegalArgumentException
- if expectation is not met (arg
is null).Copyright © 2016-2016 Development Entropy (deventropy.org) Contributors