public abstract class AssertUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> void |
arrayNotEmpty(T[] objects,
String message)
Assert an array of T instances is not empty.
|
static <T> void |
collectionNotEmpty(Collection<T> collection,
String message)
Assert a collection of T instances is not empty.
|
static <K,V> void |
mapNotEmpty(Map<K,V> map,
String message)
Assert a map of
|
static <T> void |
notNull(T object,
String message)
Assert an object of Type T is not null.
|
static void |
stringNotBlank(String s,
String message)
Assert a string is not null or blank.
|
public static <T> void notNull(T object,
String message)
public static <T> void arrayNotEmpty(T[] objects,
String message)
public static <T> void collectionNotEmpty(Collection<T> collection, String message)
public static <K,V> void mapNotEmpty(Map<K,V> map, String message)
Copyright © 2016. All rights reserved.