|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mysema.commons.lang.Assert
public final class Assert
General assertion utilities
| Method Summary | ||
|---|---|---|
static
|
assertThat(boolean condition,
String propOrMsg,
String msgSuffix,
T rv)
General assertion mwthos |
|
static String |
hasLength(String str,
String propOrMsg)
Assert that the given String is not empty |
|
static String |
hasText(String str,
String propOrMsg)
Assert that the given String has actual non-whitepsace text. |
|
static boolean |
isFalse(boolean condition,
String propOrMsg)
Assert that the given condition is true |
|
static boolean |
isTrue(boolean condition,
String propOrMsg)
Assert that the given condition is true |
|
static
|
notEmpty(C col,
String propOrMsg)
Assert that the given Collection is not empty |
|
static
|
notEmpty(M map,
String propOrMsg)
Assert that the given Map is not empty |
|
static
|
notEmpty(T[] objects,
String propOrMsg)
Assert that the given array is not empty |
|
static
|
notNull(T object,
String propOrMsg)
Assert that the given object 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 String hasText(String str,
String propOrMsg)
str - propOrMsg -
public static <T> T notNull(T object,
String propOrMsg)
T - object - propOrMsg -
public static String hasLength(String str,
String propOrMsg)
str - propOrMsg -
public static <T> T[] notEmpty(T[] objects,
String propOrMsg)
T - objects - propOrMsg -
public static <M extends Map<?,?>> M notEmpty(M map,
String propOrMsg)
M - map - propOrMsg -
public static <C extends Collection<?>> C notEmpty(C col,
String propOrMsg)
C - col - propOrMsg -
public static boolean isTrue(boolean condition,
String propOrMsg)
condition - propOrMsg -
public static boolean isFalse(boolean condition,
String propOrMsg)
condition - propOrMsg -
public static <T> T assertThat(boolean condition,
String propOrMsg,
String msgSuffix,
T rv)
T - condition - propOrMsg - msgSuffix - rv -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||