| Modifier and Type | Class and Description |
|---|---|
protected static class |
MapUtil.KeyValuePairIterator<K,V> |
protected static class |
MapUtil.ListOfListsKeyValuePairIterator<K,V> |
protected static class |
MapUtil.SequentialKeyValuePairIterator<K,V> |
| Modifier and Type | Method and Description |
|---|---|
static <V> Map<String,V> |
expandAlternativeKeyLists(Map<String,V> map)
Returns a copy of the map, treating keys as semicolon-separated list
of alternative actual keys.
|
static <K,V> Map<K,V> |
fromList(Class<K> keyType,
Class<V> valueType,
List<?> keyValuePairs) |
static <K,V> Map<K,V> |
fromList(List<?> keyValuePairs)
Return a map with keys and values taken from alternating list
elements (
[key1, val1, key2, val2, ...]), or from
sublists ([ [key1, val1], [key2, val2], ...]) |
static <K,V> Map<K,V> |
map(Class<K> keyType,
Class<V> valueType,
Object... elements) |
static <K,V> Map<K,V> |
map(Object... elements)
Create a map from any number of pairs of arguments.
|
public static <K,V> Map<K,V> map(Object... elements)
public static <K,V> Map<K,V> fromList(List<?> keyValuePairs)
[key1, val1, key2, val2, ...]), or from
sublists ([ [key1, val1], [key2, val2], ...])public static <K,V> Map<K,V> fromList(Class<K> keyType, Class<V> valueType, List<?> keyValuePairs)
public static <V> Map<String,V> expandAlternativeKeyLists(Map<String,V> map)
Copyright © 2000–2018 LOCKSS Program. All rights reserved.