Package science.aist.jack.collection
Class CollectionUtils
- java.lang.Object
-
- science.aist.jack.collection.CollectionUtils
-
public class CollectionUtils extends Object
Util class for
Collection
andIterable
- Since:
- 2.0
- Author:
- Christoph Praschl
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isNullOrEmpty(Collection<?> collection)
static boolean
isNullOrEmpty(Map<?,?> map)
-
-
-
Method Detail
-
isNullOrEmpty
public static boolean isNullOrEmpty(Collection<?> collection)
- Parameters:
collection
- to check- Returns:
- true iff collection is null or empty else false
-
isNullOrEmpty
public static boolean isNullOrEmpty(Map<?,?> map)
- Parameters:
map
- to check- Returns:
- true iff collection is null or empty else false
-
-