public class MapUtils extends Object
| Constructor and Description |
|---|
MapUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
createChainMap(Map<K,?> a,
Map<?,V> b) |
static <K,V> V |
getOrCreate(Map<K,V> map,
K key,
Class<V> clazz,
Object... ctorArgs) |
static <K,V> V |
getOrElse(Map<? extends K,? extends V> map,
K key,
V elze) |
static <K,V> boolean |
isCompatible(Map<K,V> a,
Map<K,V> b)
Compatible means that merging the two maps would not result in the same
key being mapped to distinct values.
|
static <K,V> boolean |
isPartiallyCompatible(Map<K,V> a,
Map<K,V> b) |
static <K,V> com.google.common.collect.Multimap<V,K> |
reverse(Map<K,V> map) |
public static <K,V> boolean isCompatible(Map<K,V> a, Map<K,V> b)
K - V - a - b - public static <K,V> com.google.common.collect.Multimap<V,K> reverse(Map<K,V> map)
public static <K,V> V getOrElse(Map<? extends K,? extends V> map, K key, V elze)
Copyright © 2015. All rights reserved.