Package org.fest.util

Class Maps

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

public class Maps extends Object
Understands utility methods related to maps.
  • Constructor Details

    • Maps

      private Maps()
  • Method Details

    • isEmpty

      public static boolean isEmpty(Map<?,?> map)
      Returns true if 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.
    • format

      private static Object format(Map<?,?> map, Object o)