|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openwms.core.util.validation.AssertUtils
public final class AssertUtils
A AssertUtils. Simple utility class to encapsulate some assert methods
Method Summary | |
---|---|
static void |
isNotEmpty(String str)
Asserts that the String str is not null and not
empty. |
static void |
isNotEmpty(String str,
String message)
Asserts that the String str is not null and not
empty. |
static void |
notNull(Object obj)
Asserts that obj is not null . |
static void |
notNull(Object obj,
String msg)
Asserts that obj 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 notNull(Object obj, String msg)
obj
is not null
.
obj
- the Object to be checkedmsg
- the message in case of failure
IllegalArgumentException
- if obj
is null
public static void notNull(Object obj)
obj
is not null
.
obj
- the Object to be checked
IllegalArgumentException
- if obj
is null
public static void isNotEmpty(String str, String message)
str
is not null
and not
empty.
str
- the String to be checkedmessage
- the message in case of failure
IllegalArgumentException
- if str
is null
or emptyString.isEmpty()
public static void isNotEmpty(String str)
str
is not null
and not
empty.
str
- the String to check
IllegalArgumentException
- if str
is null
or emptyString.isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |