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 boolean
isEmpty
(Collection<?> collection) Returntrue
if the supplied Collection isnull
or empty.static boolean
isNotEmpty
(Collection<?> collection) Returntrue
if the supplied Collection is notnull
and not empty.
-
Constructor Details
-
CollectionUtils
public CollectionUtils()
-
-
Method Details
-
isEmpty
Returntrue
if the supplied Collection isnull
or empty. Otherwise, returnfalse
.- Parameters:
collection
- the Collection to check- Returns:
- whether the given Collection is empty
-
isNotEmpty
Returntrue
if the supplied Collection is notnull
and not empty. Otherwise, returnfalse
.- Parameters:
collection
- the Collection to check- Returns:
- whether the given Collection is not empty
-