public final class MoreMaps
extends java.lang.Object
Map
instances.Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
flatten(java.util.Map<?,java.lang.Object> map) |
static java.util.Map<java.lang.String,java.lang.Object> |
flatten(java.util.Map<?,java.lang.Object> map,
com.google.common.base.Joiner joiner) |
static java.util.Map<java.lang.String,java.lang.Object> |
flatten(java.util.Map<?,java.lang.Object> map,
com.google.common.base.Joiner joiner,
java.util.Map<java.lang.String,java.lang.Object> result) |
static java.util.Map<java.lang.String,java.lang.Object> |
flatten(java.util.Map<?,java.lang.Object> map,
com.google.common.base.Joiner joiner,
com.google.common.base.Supplier<? extends java.util.Map<java.lang.String,java.lang.Object>> supplier) |
static <K,V> java.util.Map<K,V> |
fromDictionary(java.util.Dictionary<K,V> dictionary) |
static <K,V> java.util.HashMap<com.google.common.base.Equivalence.Wrapper<K>,V> |
newHashMap(com.google.common.base.Equivalence<? super K> equivalence,
java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries) |
static <K,V> java.util.HashMap<K,V> |
newHashMap(java.lang.Iterable<? extends java.util.Map.Entry<com.google.common.base.Equivalence.Wrapper<? extends K>,? extends V>> entries) |
static <K,V> java.util.HashMap<K,V> |
newHashMapExpectedFor(java.lang.Iterable<?> iterable) |
static <K,V> java.util.LinkedHashMap<com.google.common.base.Equivalence.Wrapper<K>,V> |
newLinkedHashMap(com.google.common.base.Equivalence<? super K> equivalence,
java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries) |
static <K,V> java.util.LinkedHashMap<K,V> |
newLinkedHashMap(java.lang.Iterable<? extends java.util.Map.Entry<com.google.common.base.Equivalence.Wrapper<? extends K>,? extends V>> entries) |
static <K,V> void |
putAll(java.util.Map<K,V> map,
java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries) |
static <K,V> void |
putAll(java.util.Map<K,V> map,
java.util.Iterator<? extends java.util.Map.Entry<? extends K,? extends V>> entries) |
static java.util.Map<java.lang.String,java.lang.Object> |
structure(java.util.Map<?,?> map) |
static java.util.Map<java.lang.String,java.lang.Object> |
structure(java.util.Map<?,?> map,
com.google.common.base.Splitter splitter) |
static java.util.Map<java.lang.String,java.lang.Object> |
structure(java.util.Map<?,?> map,
com.google.common.base.Splitter splitter,
com.google.common.base.Supplier<? extends java.util.Map<java.lang.String,java.lang.Object>> supplier) |
static <E extends java.util.Map.Entry<? extends K,?>,K> |
toKeyFunction() |
static java.util.Map<java.lang.String,java.lang.Object> |
toProperties(java.util.Map<?,?> map) |
static java.util.Map<java.lang.String,java.lang.Object> |
toProperties(java.util.Map<?,?> map,
java.util.Map<java.lang.String,java.lang.Object> result) |
static java.util.Map<java.lang.String,java.lang.Object> |
toProperties(java.util.Map<?,?> map,
com.google.common.base.Supplier<? extends java.util.Map<java.lang.String,java.lang.Object>> supplier) |
static <E extends java.util.Map.Entry<?,? extends V>,V> |
toValueFunction() |
static <K,V> void |
unwrapAll(java.util.Map<K,V> map,
java.lang.Iterable<? extends java.util.Map.Entry<com.google.common.base.Equivalence.Wrapper<? extends K>,? extends V>> entries) |
static <K,V> void |
wrapAll(java.util.Map<com.google.common.base.Equivalence.Wrapper<K>,V> map,
com.google.common.base.Equivalence<? super K> equivalence,
java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries) |
public static <K,V> java.util.HashMap<com.google.common.base.Equivalence.Wrapper<K>,V> newHashMap(com.google.common.base.Equivalence<? super K> equivalence, java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
public static <K,V> java.util.HashMap<K,V> newHashMap(java.lang.Iterable<? extends java.util.Map.Entry<com.google.common.base.Equivalence.Wrapper<? extends K>,? extends V>> entries)
public static <K,V> java.util.HashMap<K,V> newHashMapExpectedFor(java.lang.Iterable<?> iterable)
public static <K,V> java.util.LinkedHashMap<com.google.common.base.Equivalence.Wrapper<K>,V> newLinkedHashMap(com.google.common.base.Equivalence<? super K> equivalence, java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
public static <K,V> java.util.LinkedHashMap<K,V> newLinkedHashMap(java.lang.Iterable<? extends java.util.Map.Entry<com.google.common.base.Equivalence.Wrapper<? extends K>,? extends V>> entries)
public static <K,V> java.util.Map<K,V> fromDictionary(java.util.Dictionary<K,V> dictionary)
public static java.util.Map<java.lang.String,java.lang.Object> flatten(java.util.Map<?,java.lang.Object> map)
public static java.util.Map<java.lang.String,java.lang.Object> flatten(java.util.Map<?,java.lang.Object> map, com.google.common.base.Joiner joiner)
public static java.util.Map<java.lang.String,java.lang.Object> flatten(java.util.Map<?,java.lang.Object> map, com.google.common.base.Joiner joiner, java.util.Map<java.lang.String,java.lang.Object> result)
public static java.util.Map<java.lang.String,java.lang.Object> flatten(java.util.Map<?,java.lang.Object> map, com.google.common.base.Joiner joiner, com.google.common.base.Supplier<? extends java.util.Map<java.lang.String,java.lang.Object>> supplier)
public static java.util.Map<java.lang.String,java.lang.Object> structure(java.util.Map<?,?> map)
public static java.util.Map<java.lang.String,java.lang.Object> structure(java.util.Map<?,?> map, com.google.common.base.Splitter splitter)
public static java.util.Map<java.lang.String,java.lang.Object> structure(java.util.Map<?,?> map, com.google.common.base.Splitter splitter, com.google.common.base.Supplier<? extends java.util.Map<java.lang.String,java.lang.Object>> supplier)
public static <K,V> void putAll(java.util.Map<K,V> map, java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
public static <K,V> void putAll(java.util.Map<K,V> map, java.util.Iterator<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
public static <K,V> void wrapAll(java.util.Map<com.google.common.base.Equivalence.Wrapper<K>,V> map, com.google.common.base.Equivalence<? super K> equivalence, java.lang.Iterable<? extends java.util.Map.Entry<? extends K,? extends V>> entries)
public static <K,V> void unwrapAll(java.util.Map<K,V> map, java.lang.Iterable<? extends java.util.Map.Entry<com.google.common.base.Equivalence.Wrapper<? extends K>,? extends V>> entries)
public static java.util.Map<java.lang.String,java.lang.Object> toProperties(java.util.Map<?,?> map)
public static java.util.Map<java.lang.String,java.lang.Object> toProperties(java.util.Map<?,?> map, java.util.Map<java.lang.String,java.lang.Object> result)
public static java.util.Map<java.lang.String,java.lang.Object> toProperties(java.util.Map<?,?> map, com.google.common.base.Supplier<? extends java.util.Map<java.lang.String,java.lang.Object>> supplier)
public static <E extends java.util.Map.Entry<? extends K,?>,K> com.google.common.base.Function<E,K> toKeyFunction()
public static <E extends java.util.Map.Entry<?,? extends V>,V> com.google.common.base.Function<E,V> toValueFunction()