|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jrdf.util.param.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(String name,
Object param)
Checks if param is null and throws an exception if it is. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void checkNotNull(String name,
Object param)
throws IllegalArgumentException
null and throws an exception if it is.
name - The name of the parameter to check.param - The parameter to check.
IllegalArgumentException - If null.
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 null or the empty string.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||