|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openquark.cal.services.Assert
public final class Assert
A static helper class which contains various utility methods which can be used to check code preconditions at runtime. These methods throw some sort of unchecked exception if the precondition is not met.
| Method Summary | |
|---|---|
static void |
isNotNull(Object o)
Assert that an object is not null. |
static void |
isNotNull(Object o,
String exceptionText)
Assert that an object is not null. |
static void |
isNotNullArgument(Object argValue)
Assert that the value of an argument is not null. |
static void |
isNotNullArgument(Object argValue,
String argName)
Assert that the value of an 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 isNotNull(Object o)
throws NullPointerException
o - the object to check
NullPointerException - if o is null.
public static void isNotNull(Object o,
String exceptionText)
throws NullPointerException
o - the object to check.exceptionText - the text of the exception message if the object is null.
If null, no exception text is included.
NullPointerException - if o is null.
public static void isNotNullArgument(Object argValue)
throws NullPointerException
argValue - the value of the argument.
NullPointerException - if argValue is null.
public static void isNotNullArgument(Object argValue,
String argName)
throws NullPointerException
argValue - the value of the argument.argName - the name of the argument.
If null or an empty string, no argument name is assumed.
NullPointerException - if argumentValue is null.
|
![]() Quark Platform Documentation Version 1.7.0_0 Business Objects |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||