|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.util.ArgumentChecker
A simple helper class, that helps checking arguments by throwing
IllegalArgumentExceptions, if the
condition checked was not fulfilled.
| Method Summary | |
static void |
checkInstanceOf(java.lang.Class argClass,
java.lang.String argName,
java.lang.Class superClass)
Checks, if the given argument class is subclass of the given super class. |
static void |
checkInstanceOf(java.lang.Object arg,
java.lang.String argName,
java.lang.Class superClass)
Checks, if the given argument is an instance of the given super class. |
static void |
checkNotNull(java.lang.Object arg,
java.lang.String argName)
Checks, if the given argument 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 checkNotNull(java.lang.Object arg,
java.lang.String argName)
throws java.lang.IllegalArgumentException
null. Throws an
IllegalArgumentException, if is not.
arg - the argument to checkargName - the argument name (should not be null)
java.lang.IllegalArgumentException - if the argument is null
public static void checkInstanceOf(java.lang.Object arg,
java.lang.String argName,
java.lang.Class superClass)
throws java.lang.IllegalArgumentException
arg - the argument to checkargName - the argument name (should not be null)superClass - the superclass to check against (not null)
java.lang.IllegalArgumentException - if the arg is not instance of the given superclass
or if the superclass given is null
public static void checkInstanceOf(java.lang.Class argClass,
java.lang.String argName,
java.lang.Class superClass)
throws java.lang.IllegalArgumentException
argClass - the argument class to checkargName - the argument name (should not be null)superClass - the superclass to check against (not null)
java.lang.IllegalArgumentException - if the arg is not instance of the given superclass
or if the superclass given is null
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||