|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.util.param.ParameterUtil
public final class ParameterUtil
Utility for checking parameters to methods.
Method Summary | |
---|---|
static void |
checkNotEmptyString(String name,
String param)
Checks if param is null or the empty string and throws an exception if it is. |
static void |
checkNotNull(Object... params)
Checks if params are null or any elements are null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void checkNotEmptyString(String name, String param) throws IllegalArgumentException
null
or the empty string and throws an exception if it is.
name
- The name of the parameter to check.param
- The parameter to check.
IllegalArgumentException
- If param is null
or the empty string.public static void checkNotNull(Object... params)
null
or any elements are null.
params
- The parameter to check.
IllegalArgumentException
- If params is null
or any elements are null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |