Class Maps


  • public class Maps
    extends java.lang.Object
    Utility methods related to maps.
    • Constructor Detail

      • Maps

        private Maps()
    • Method Detail

      • format

        @Deprecated
        public static java.lang.String format​(java.util.Map<?,​?> map)
        Deprecated.
        Returns the String standard 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

        @Deprecated
        public static java.lang.String format​(Representation p,
                                              java.util.Map<?,​?> map)
        Deprecated.
        Returns the String representation of the given map, or null if the given map is null.
        Parameters:
        p - the Representation to use.
        map - the map to format.
        Returns:
        the String representation of the given map.
      • newHashMap

        public static <K,​V> java.util.Map<K,​V> newHashMap​(K key,
                                                                      V value)