public abstract class Assert extends Object
Constructor and Description |
---|
Assert() |
Modifier and Type | Method and Description |
---|---|
static void |
isNull(Object object,
String errorMsg) |
static void |
isTrue(boolean expression,
String errorMsg) |
static <T> Collection<T> |
notEmpty(Collection<T> collection,
String errorMsg) |
static <K,V> Map<K,V> |
notEmpty(Map<K,V> map,
String errorMsg) |
static Object[] |
notEmpty(Object[] array,
String errorMsg) |
static String |
notEmpty(String text,
String errorMsg) |
static <T> T |
notNull(T object,
String errorMsg) |
public static void isTrue(boolean expression, String errorMsg) throws IllegalArgumentException
IllegalArgumentException
public static void isNull(Object object, String errorMsg) throws IllegalArgumentException
IllegalArgumentException
public static <T> T notNull(T object, String errorMsg) throws NullPointerException
NullPointerException
public static String notEmpty(String text, String errorMsg) throws IllegalArgumentException
IllegalArgumentException
public static Object[] notEmpty(Object[] array, String errorMsg) throws IllegalArgumentException
IllegalArgumentException
public static <T> Collection<T> notEmpty(Collection<T> collection, String errorMsg) throws IllegalArgumentException
IllegalArgumentException
public static <K,V> Map<K,V> notEmpty(Map<K,V> map, String errorMsg) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2018. All rights reserved.