public abstract class Maps extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Maps.Nested |
| Constructor and Description |
|---|
Maps() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> MapBuilder<K,V> |
builder() |
static <K,V> MapBuilder<K,V> |
from(Map<K,V> map) |
static <K,V> MapBuilder<K,V> |
from(Provider<Map<K,V>> provider) |
static <K,V> MapBuilder<K,V> |
linked() |
static <K,V,W> Map<W,V> |
mapKeys(Map<K,V> input,
Delegate<W,K> keysMapper) |
static <K,V,W> Map<W,V> |
mapKeys(Map<K,V> input,
Delegate<W,K> keysMapper,
BinaryDelegate<V,V,V> valueMerger) |
static <K,V,KK,VV> |
mapKeysAndValues(Map<K,V> input,
Delegate<KK,K> keysMapper,
Delegate<VV,V> valuesMapper) |
static <K,V,KK,VV> |
mapKeysAndValues(Map<K,V> input,
Delegate<KK,K> keysMapper,
Delegate<VV,V> valuesMapper,
BinaryDelegate<VV,VV,VV> valueMerger) |
static <K,V,W> Map<K,W> |
mapValues(Map<K,V> input,
Delegate<W,V> valuesMapper) |
static <K,V> MapBuilder<K,V> |
tree() |
static <K,V> MapBuilder<K,V> |
tree(Comparator<K> keyComp) |
public static <K,V> MapBuilder<K,V> from(Map<K,V> map)
public static <K,V> MapBuilder<K,V> from(Provider<Map<K,V>> provider)
public static <K,V> MapBuilder<K,V> builder()
public static <K,V> MapBuilder<K,V> linked()
public static <K,V> MapBuilder<K,V> tree()
public static <K,V> MapBuilder<K,V> tree(Comparator<K> keyComp)
public static <K,V,W> Map<W,V> mapKeys(Map<K,V> input, Delegate<W,K> keysMapper, BinaryDelegate<V,V,V> valueMerger)
public static <K,V,KK,VV> Map<KK,VV> mapKeysAndValues(Map<K,V> input, Delegate<KK,K> keysMapper, Delegate<VV,V> valuesMapper)
public static <K,V,KK,VV> Map<KK,VV> mapKeysAndValues(Map<K,V> input, Delegate<KK,K> keysMapper, Delegate<VV,V> valuesMapper, BinaryDelegate<VV,VV,VV> valueMerger)
Copyright © 2016. All rights reserved.