|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.otfeed.protocol.request.Check
public final class Check
Helper class to validate parameters.
| Method Summary | |
|---|---|
static void |
isTrue(boolean predicate,
java.lang.String message)
|
static void |
notNull(java.lang.Object obj,
java.lang.String name)
Throws NullPointerException with the appropriate message if obj parameter is null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void notNull(java.lang.Object obj,
java.lang.String name)
obj parameter is null.
obj - object to check.name - name of the object to display as part of the
exception message.
public static void isTrue(boolean predicate,
java.lang.String message)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||