|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.common.client.api.Assert
public class Assert
Non-instantiable utility for self-checking code.
Method Summary | ||
---|---|---|
static
|
notNull(String errorMessage,
V value)
Throws NullPointerException if the value is null with an error message. |
|
static
|
notNull(V value)
Throws NullPointerException if the value is null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <V> V notNull(String errorMessage, V value)
V
- errorMessage
- an error message to be displayed as part of the NullPointerException thrown.value
- the value that must not be null
NullPointerException
- if value is null.public static <V> V notNull(V value)
V
- value
- the value that must not be null
NullPointerException
- if value is null.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |