|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.assertj.core.util.Preconditions
public final class Preconditions
Verifies correct argument values and state. Borrowed from Guava.
| Field Summary | |
|---|---|
static String |
ARGUMENT_EMPTY
|
| Method Summary | ||
|---|---|---|
static
|
checkNotNull(T reference)
Verifies that the given object reference is not null. |
|
static
|
checkNotNull(T reference,
String message)
Verifies that the given object reference is not null. |
|
static String |
checkNotNullOrEmpty(String s)
Verifies that the given String is not null or empty. |
|
static String |
checkNotNullOrEmpty(String s,
String message)
Verifies that the given String is not null or empty. |
|
static
|
checkNotNullOrEmpty(T[] array)
Verifies that the given array is not null or empty. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ARGUMENT_EMPTY
| 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 String checkNotNullOrEmpty(String s,
String message)
String is not null or empty.
s - the given String.message - error message in case of empty String.
String.
NullPointerException - if the given String is null.
IllegalArgumentException - if the given String is empty.public static <T> T[] checkNotNullOrEmpty(T[] array)
null or empty.
array - the given array.
NullPointerException - if the given array is null.
IllegalArgumentException - if the given array 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.
public static <T> T checkNotNull(T reference,
String message)
null.
reference - the given object reference.message - error message in case of null 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 | |||||||||