Class CollectionUtil

java.lang.Object
com.acanx.utils.incubator.CollectionUtil

@Alpha public class CollectionUtil extends Object
Java集合处理工具类
Since:
0.0.1.10
  • Constructor Details

    • CollectionUtil

      public CollectionUtil()
  • Method Details

    • isEmpty

      @Alpha public static boolean isEmpty(Collection<?> coll)
      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

      @Alpha public static boolean isNotEmpty(Collection<?> coll)
      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