|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.logdoc.MandatoryArgumentChecker
Utility class used to check mandatory method arguments.
Method Summary | |
static void |
check(String argumentName,
Object argumentValue)
Checks that the specified argument is not null . |
static void |
check(String argumentName1,
Object argumentValue1,
String argumentName2,
Object argumentValue2)
Checks that the specified two arguments are 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 check(String argumentName, Object argumentValue) throws IllegalArgumentException
null
.
argumentName
- the name of the argument that cannot be null
.argumentValue
- the value of the argument that cannot be null
.
IllegalArgumentException
- if argumentName == null
or argumentValue == null
.public static void check(String argumentName1, Object argumentValue1, String argumentName2, Object argumentValue2) throws IllegalArgumentException
null
.
argumentName1
- the name of the first argument that cannot be null
.argumentValue1
- the value of the first argument that cannot be null
.argumentName2
- the name of the second argument that cannot be null
.argumentValue2
- the value of the second argument that cannot be null
.
IllegalArgumentException
- if argumentName1 == null || argumentName2 == null
or if argumentValue1 == null || argumentValue2 == null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |