|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.util.Assert
public class Assert
Constructor Summary | |
---|---|
Assert()
|
Method Summary | |
---|---|
static void |
notBlank(java.lang.String string)
Assert that a string is not blank. |
static void |
notNull(java.lang.Object object)
Assert that an object is not null . |
static void |
notNull(java.lang.Object object,
java.lang.String message)
Assert that an object is not null . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Assert()
Method Detail |
---|
public static void notNull(java.lang.Object object, java.lang.String message)
null
.
Assert.notNull(clazz, "The class must not be null");
object
- the object to checkmessage
- the exception message to use if the assertion fails
java.lang.IllegalArgumentException
- if the object is null
public static void notNull(java.lang.Object object) throws java.lang.IllegalArgumentException
null
.
Assert.notNull(clazz, "The class must not be null");
object
- the object to check
java.lang.IllegalArgumentException
- if the object is null
public static void notBlank(java.lang.String string) throws java.lang.IllegalArgumentException
string
- the string to check
java.lang.IllegalArgumentException
- if the object is blank
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |