Package com.acanx.utils.incubator
Class CollectionUtil
java.lang.Object
com.acanx.utils.incubator.CollectionUtil
Java集合处理工具类
- Since:
- 0.0.1.10
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isEmpty
(Collection<?> coll) Null-safe check if the specified collection is empty.static boolean
isNotEmpty
(Collection<?> coll) Null-safe check if the specified collection is not empty.
-
Constructor Details
-
CollectionUtil
public CollectionUtil()
-
-
Method Details
-
isEmpty
Null-safe check if the specified collection is empty.Null returns true.
- Parameters:
coll
- the collection to check, may be null- Returns:
- true if empty or null
- Since:
- 0.0.1.10
-
isNotEmpty
Null-safe check if the specified collection is not empty.Null returns false.
- Parameters:
coll
- the collection to check, may be null- Returns:
- true if non-null and non-empty
- Since:
- 0.0.1.10
-