Package spark.utils
Class CollectionUtils
- java.lang.Object
-
- spark.utils.CollectionUtils
-
public abstract class CollectionUtils extends java.lang.ObjectMiscellaneous collection utility methods. Mainly for internal use within the framework.
-
-
Constructor Summary
Constructors Constructor Description CollectionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisEmpty(java.util.Collection<?> collection)Returntrueif the supplied Collection isnullor empty.static booleanisNotEmpty(java.util.Collection<?> collection)Returntrueif the supplied Collection is notnulland not empty.
-
-
-
Method Detail
-
isEmpty
public static boolean isEmpty(java.util.Collection<?> collection)
Returntrueif the supplied Collection isnullor empty. Otherwise, returnfalse.- Parameters:
collection- the Collection to check- Returns:
- whether the given Collection is empty
-
isNotEmpty
public static boolean isNotEmpty(java.util.Collection<?> collection)
Returntrueif the supplied Collection is notnulland not empty. Otherwise, returnfalse.- Parameters:
collection- the Collection to check- Returns:
- whether the given Collection is not empty
-
-