Package org.fest.util

Class Maps

java.lang.Object
org.fest.util.Maps

public class Maps extends Object
Utility methods related to maps.
Author:
Yvonne Wang, Alex Ruiz
  • Method Details

    • isNullOrEmpty

      public static boolean isNullOrEmpty(Map<?,?> map)
      Indicates whether the given Map is null or empty.
      Parameters:
      map - the map to check.
      Returns:
      true if the given Map is null or empty, otherwise false.
    • format

      public static String format(Map<?,?> map)
      Returns the String representation of the given map, or null if the given map is null.
      Parameters:
      map - the map to format.
      Returns:
      the String representation of the given map.