public abstract class Assert extends Object
| 构造器和说明 |
|---|
Assert() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
public static void isNull(Object object, String errorMsg) throws IllegalArgumentException
public static <T> T notNull(T object,
String errorMsg)
throws NullPointerException
public static String notEmpty(String text, String errorMsg) throws IllegalArgumentException
public static Object[] notEmpty(Object[] array, String errorMsg) throws IllegalArgumentException
public static <T> Collection<T> notEmpty(Collection<T> collection, String errorMsg) throws IllegalArgumentException
public static <K,V> Map<K,V> notEmpty(Map<K,V> map, String errorMsg) throws IllegalArgumentException
Copyright © 2018. All Rights Reserved.