Package spark.utils

Class CollectionUtils

java.lang.Object
spark.utils.CollectionUtils

public abstract class CollectionUtils extends Object
Miscellaneous collection utility methods. Mainly for internal use within the framework.
  • Constructor Details

    • CollectionUtils

      public CollectionUtils()
  • Method Details

    • isEmpty

      public static boolean isEmpty(Collection<?> collection)
      Return true if the supplied Collection is null or empty. Otherwise, return false.
      Parameters:
      collection - the Collection to check
      Returns:
      whether the given Collection is empty
    • isNotEmpty

      public static boolean isNotEmpty(Collection<?> collection)
      Return true if the supplied Collection is not null and not empty. Otherwise, return false.
      Parameters:
      collection - the Collection to check
      Returns:
      whether the given Collection is not empty