Package io.sundr.utils
Class Maps
- java.lang.Object
-
- io.sundr.utils.Maps
-
public final class Maps extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>create(String mappings)static <K,V>
Map<K,V>create(K key, V value)static <K,V>
Map<K,V>create(K key1, V value1, K key2, V value2)static <K,V>
Map<K,V>create(K key1, V value1, K key2, V value2, K key3, V value3)static StringextractKey(String mapping)Extract the key from the mappingstatic StringextractValue(String mapping)Extract the value from the mapping
-
-
-
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)
-
-