Class MapUtils
java.lang.Object
se.kuseman.payloadbuilder.api.utils.MapUtils
Map utilities
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> AbstractMap.SimpleEntry<K, V> entry(K key, V value) Build entry out of provided key and valuestatic <K,V> Map<K, V> ofEntries(boolean keepInsertOrder, AbstractMap.SimpleEntry<K, V>... values) Build a map with kept insertion order out of entriesstatic <K,V> Map<K, V> ofEntries(AbstractMap.SimpleEntry<K, V>... values) Build map out of entries
-
Method Details
-
ofEntries
Build map out of entries -
ofEntries
@SafeVarargs public static <K,V> Map<K,V> ofEntries(boolean keepInsertOrder, AbstractMap.SimpleEntry<K, V>... values) Build a map with kept insertion order out of entries -
entry
Build entry out of provided key and value
-