Class Maps


  • public final class Maps
    extends Object
    • Method Detail

      • extractKey

        public static String extractKey​(String mapping)
        Extract the key from the mapping
        Parameters:
        mapping - the mapping ([key]=[value])
        Returns:
        the key or throws an exception if the mapping format is invalid
      • extractValue

        public static String extractValue​(String mapping)
        Extract the value from the mapping
        Parameters:
        mapping - the mapping ([key]=[value])
        Returns:
        the key or throws an exception if the mapping format is invalid
      • create

        public static <K,​V> Map<K,​V> create​(K key,
                                                        V value)
      • create

        public static <K,​V> Map<K,​V> create​(K key1,
                                                        V value1,
                                                        K key2,
                                                        V value2)
      • create

        public static <K,​V> Map<K,​V> create​(K key1,
                                                        V value1,
                                                        K key2,
                                                        V value2,
                                                        K key3,
                                                        V value3)