|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object i3.dragos.util.QA
public final class QA
QA methods for checking parameter validity. An IllegalArgumentException
is thrown for all parameters which do not obey the rules.
Method Summary | |
---|---|
static void |
checkInstanceOfParam(java.lang.Object param,
java.lang.String name,
java.lang.Class clazz)
Checks that a parameter is not null , and instance of a
specified class. |
static void |
checkNonNullParam(java.lang.Object param,
java.lang.String name)
Checks that a parameter is not null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void checkNonNullParam(java.lang.Object param, java.lang.String name)
null
. If the parameter is
null
an IllegalArgumentException
is thrown.
param
- The parameter to check.name
- The name of the paremeter (must not be null).public static void checkInstanceOfParam(java.lang.Object param, java.lang.String name, java.lang.Class clazz)
null
, and instance of a
specified class. If any parameter is null
or 'param' is not
an instance of the specificed class an IllegalArgumentException
is thrown.
param
- The parameter to check.name
- The name of the paremeter (must not be null).clazz
- The requested class of the paremeter (must not be null).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |