|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.tools.Checks
public final class Checks
Contains various check methods.
| Method Summary | |
|---|---|
static void |
checkArg(String strCondition,
boolean condition)
Checks that method argument holds given precondition. |
static void |
checkNotBlank(String name,
String value)
Asserts that given parameter is not #isBlank(String). |
static void |
checkNotNull(String name,
Object value)
Asserts that given 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 checkArg(String strCondition,
boolean condition)
strCondition - the textual form of the condition, e.g. "count>=0"condition - the condition. If false then IllegalArgumentException is thrown.
public static void checkNotNull(String name,
Object value)
name - the parameter namevalue - the parameter value
public static void checkNotBlank(String name,
String value)
#isBlank(String).
name - the parameter namevalue - the parameter value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||