Package spark.utils

Class CollectionUtils


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

      Constructors 
      Constructor Description
      CollectionUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isEmpty​(java.util.Collection<?> collection)
      Return true if the supplied Collection is null or empty.
      static boolean isNotEmpty​(java.util.Collection<?> collection)
      Return true if the supplied Collection is not null and not empty.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollectionUtils

        public CollectionUtils()
    • Method Detail

      • isEmpty

        public static boolean isEmpty​(java.util.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​(java.util.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