Class MapUtils


  • public final class MapUtils
    extends Object
    Map utilities. Replicates Apache Commons Collections.
    • Method Detail

      • isEmpty

        public static boolean isEmpty​(Map<?,​?> map)
        Returns true if the specified map is null or empty.
        Parameters:
        map - The map. May be null.
        Returns:
        true if the map is null or empty, else false.
      • isNotEmpty

        public static boolean isNotEmpty​(Map<?,​?> map)
        Returns true if the specified map is not null and not empty.
        Parameters:
        map - The map. May be null.
        Returns:
        true if the map is not null and not empty, else false.