Package spark.utils
Class CollectionUtils
java.lang.Object
spark.utils.CollectionUtils
Miscellaneous collection utility methods.
Mainly for internal use within the framework.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEmpty(Collection<?> collection) Returntrueif the supplied Collection isnullor empty.static booleanisNotEmpty(Collection<?> collection) Returntrueif the supplied Collection is notnulland not empty.
-
Constructor Details
-
CollectionUtils
public CollectionUtils()
-
-
Method Details
-
isEmpty
Returntrueif the supplied Collection isnullor empty. Otherwise, returnfalse.- Parameters:
collection- the Collection to check- Returns:
- whether the given Collection is empty
-
isNotEmpty
Returntrueif the supplied Collection is notnulland not empty. Otherwise, returnfalse.- Parameters:
collection- the Collection to check- Returns:
- whether the given Collection is not empty
-