public class Maps extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Maps.Builder<K,V> |
| Constructor and Description |
|---|
Maps() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Maps.Builder<K,V> |
builder() |
static <K1,K2,V> Map<K2,V> |
eagerMapKeys(Map<K1,V> map,
Function<K1,K2> function) |
static <K,V1,V2> Map<K,V2> |
eagerMapValues(Map<K,V1> map,
Function<V1,V2> function) |
static <K,V> Map.Entry<K,V> |
entry(K key,
V value) |
static <K,V> Optional<V> |
lookup(Map<K,V> map,
K key) |
static <K,V> Map<K,V> |
map() |
static <K,V> Map<K,V> |
map(K key1,
V value1) |
static <K,V> Map<K,V> |
map(K key1,
V value1,
K key2,
V value2) |
static <K,V> Map<K,V> |
map(K key1,
V value1,
K key2,
V value2,
K key3,
V value3) |
static <K,V> Map<K,V> |
map(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4) |
static <K,V> Map<K,V> |
mutableMap(K key1,
V value1) |
static <T,K,V> Map<K,V> |
toMap(Iterable<T> iterable,
Function<T,Map.Entry<K,V>> function) |
static <T,K> Map<K,T> |
toMapWithKey(Iterable<T> iterable,
Function<T,K> function) |
static <T,K,V> Map<K,List<V>> |
toMultiMap(Iterable<T> iterable,
Function<T,Map.Entry<K,V>> function) |
static <T,K> Map<K,List<T>> |
toMultiMapWithKey(Iterable<T> iterable,
Function<T,K> function) |
public static <K,V> Map<K,V> map()
public static <K,V> Map<K,V> map(K key1, V value1)
public static <K,V> Map<K,V> map(K key1, V value1, K key2, V value2)
public static <K,V> Map<K,V> map(K key1, V value1, K key2, V value2, K key3, V value3)
public static <K,V> Map<K,V> map(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
public static <K,V> Map<K,V> mutableMap(K key1, V value1)
public static <K,V> Map.Entry<K,V> entry(K key, V value)
public static <T,K> Map<K,T> toMapWithKey(Iterable<T> iterable, Function<T,K> function)
public static <T,K,V> Map<K,V> toMap(Iterable<T> iterable, Function<T,Map.Entry<K,V>> function)
public static <T,K> Map<K,List<T>> toMultiMapWithKey(Iterable<T> iterable, Function<T,K> function)
public static <T,K,V> Map<K,List<V>> toMultiMap(Iterable<T> iterable, Function<T,Map.Entry<K,V>> function)
public static <K1,K2,V> Map<K2,V> eagerMapKeys(Map<K1,V> map, Function<K1,K2> function)
public static <K,V1,V2> Map<K,V2> eagerMapValues(Map<K,V1> map, Function<V1,V2> function)
public static <K,V> Maps.Builder<K,V> builder()
Copyright © 2018. All rights reserved.