public class MapUtils extends Object
| Constructor and Description |
|---|
MapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
mapWithKeysAndValues(Class<? extends Map> mapClass,
Collection<K> keys,
Collection<V> values)
Convenience method for CollectionUtil#mapWithKeysAndValues(Class, Iterator, Iterator); keys and values can be null or empty.
|
static <K,V> Map<K,V> |
mapWithKeysAndValues(Class<? extends Map> mapClass,
Iterator<K> keys,
Iterator<V> values)
Create & populate a Map of arbitrary class.
|
static <K,V> Map<K,V> |
mapWithKeysAndValues(Class<? extends Map> mapClass,
K[] keys,
V[] values)
Convenience method for CollectionUtil#mapWithKeysAndValues(Class, Iterator, Iterator); keys and values can be null or empty.
|
static String |
toString(Map props,
boolean newline)
Creates a String representation of the given Map, with optional newlines between elements.
|
public static <K,V> Map<K,V> mapWithKeysAndValues(Class<? extends Map> mapClass, K[] keys, V[] values)
public static <K,V> Map<K,V> mapWithKeysAndValues(Class<? extends Map> mapClass, Collection<K> keys, Collection<V> values)
public static <K,V> Map<K,V> mapWithKeysAndValues(Class<? extends Map> mapClass, Iterator<K> keys, Iterator<V> values)
mapClass - the Class of the Map to instantiatekeys - iterator for Objects ued as keysvalues - iterator for Objects used as valuesCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.