Package org.fest.util

Class Maps


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String format​(java.util.Map<?,​?> map)
      Returns the String representation of the given map, or null if the given map is null.
      static boolean isNullOrEmpty​(java.util.Map<?,​?> map)
      Indicates whether the given 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

      • isNullOrEmpty

        public static boolean isNullOrEmpty​(java.util.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 java.lang.String format​(java.util.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.