public final class ValidationUtils extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static <E> boolean | isEmpty(Collection<E> c)Checks if the given  Collectionis null or empty. | 
| static <K,V> boolean | isEmpty(Map<K,V> map)Checks if the given  Mapis null or empty. | 
| static boolean | isEmpty(String str)Checks if the given  Stringis null or empty. | 
| static boolean | isSuccess(int statusCode)Checks if the given http status code is in the 2xx range | 
public static <E> boolean isEmpty(Collection<E> c)
Collection is null or empty.c - the collection to be checkedpublic static <K,V> boolean isEmpty(Map<K,V> map)
Map is null or empty.map - the map to be checkedpublic static boolean isEmpty(String str)
String is null or empty.str - the string to be checkedpublic static boolean isSuccess(int statusCode)
statusCode - the int containing the status codeCopyright © 2015 JBoss by Red Hat. All Rights Reserved.