|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.fest.util.Preconditions
public final class Preconditions
Verifies correct argument values and state. Borrowed from Guava.
| Method Summary | ||
|---|---|---|
static
|
checkNotNull(T reference)
Verifies that the given object reference is not null. |
|
static String |
checkNotNullOrEmpty(String s)
Verifies that the given String is not null or empty. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String checkNotNullOrEmpty(String s)
String is not null or empty.
s - the given String.
String.
NullPointerException - if the given String is null.
IllegalArgumentException - if the given String is empty.public static <T> T checkNotNull(T reference)
null.
reference - the given object reference.
null reference that was validated.
NullPointerException - if the given object reference is null.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||