Package org.nd4j.common.io
Class Assert
- java.lang.Object
-
- org.nd4j.common.io.Assert
-
public abstract class Assert extends Object
-
-
Constructor Summary
Constructors Constructor Description Assert()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
doesNotContain(String textToSearch, String substring)
static void
doesNotContain(String textToSearch, String substring, String message)
static void
hasLength(String text)
static void
hasLength(String text, String message)
static void
hasText(String text)
static void
hasText(String text, String message)
static void
isAssignable(Class<?> superType, Class<?> subType)
static void
isAssignable(Class<?> superType, Class<?> subType, String message)
static void
isInstanceOf(Class<?> clazz, Object obj)
static void
isInstanceOf(Class<?> type, Object obj, String message)
static void
isNull(Object object)
static void
isNull(Object object, String message)
static void
isTrue(boolean expression)
static void
isTrue(boolean expression, String message)
static void
noNullElements(Object[] array)
static void
noNullElements(Object[] array, String message)
static void
notEmpty(Object[] array)
static void
notEmpty(Object[] array, String message)
static void
notEmpty(Collection collection)
static void
notEmpty(Collection collection, String message)
static void
notEmpty(Map map)
static void
notEmpty(Map map, String message)
static void
notNull(Object object)
static void
notNull(Object object, String message)
static void
state(boolean expression)
static void
state(boolean expression, String message)
-
-
-
Method Detail
-
isTrue
public static void isTrue(boolean expression, String message)
-
isTrue
public static void isTrue(boolean expression)
-
isNull
public static void isNull(Object object)
-
notNull
public static void notNull(Object object)
-
hasLength
public static void hasLength(String text)
-
hasText
public static void hasText(String text)
-
doesNotContain
public static void doesNotContain(String textToSearch, String substring, String message)
-
notEmpty
public static void notEmpty(Object[] array)
-
noNullElements
public static void noNullElements(Object[] array)
-
notEmpty
public static void notEmpty(Collection collection, String message)
-
notEmpty
public static void notEmpty(Collection collection)
-
notEmpty
public static void notEmpty(Map map)
-
state
public static void state(boolean expression, String message)
-
state
public static void state(boolean expression)
-
-