Class Collections


  • public final class Collections
    extends java.lang.Object
    • 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 isEmpty​(java.util.Map map)
      Return true if the supplied Map is null or empty.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • isEmpty

        public static boolean isEmpty​(java.util.Map map)
        Return true if the supplied Map is null or empty. Otherwise, return false.
        Parameters:
        map - the Map to check
        Returns:
        whether the given Map is empty