public class Multimaps2 extends Object
Constructor and Description |
---|
Multimaps2() |
Modifier and Type | Method and Description |
---|---|
static <K,V> com.google.common.collect.Multimap<K,V> |
replaceEntries(com.google.common.collect.Multimap<K,V> fromMultimap,
com.google.common.collect.Multimap<K,V> updates) |
static <K,V> com.google.common.collect.Multimap<K,V> |
replaceValue(com.google.common.collect.Multimap<K,V> fromMultimap,
K key,
V value) |
static <K1,K2,V> com.google.common.collect.Multimap<K2,V> |
transformKeys(com.google.common.collect.Multimap<K1,V> in,
com.google.common.base.Function<K1,K2> fn)
change the keys but keep the values in-tact.
|
static <K,V> com.google.common.collect.Multimap<K,V> |
withoutKey(com.google.common.collect.Multimap<K,V> fromMultimap,
K key) |
static <K,V> com.google.common.collect.Multimap<K,V> |
withoutKeys(com.google.common.collect.Multimap<K,V> fromMultimap,
Set<K> keys) |
public static <K,V> com.google.common.collect.Multimap<K,V> replaceValue(com.google.common.collect.Multimap<K,V> fromMultimap, K key, V value)
public static <K,V> com.google.common.collect.Multimap<K,V> replaceEntries(com.google.common.collect.Multimap<K,V> fromMultimap, com.google.common.collect.Multimap<K,V> updates)
public static <K,V> com.google.common.collect.Multimap<K,V> withoutKey(com.google.common.collect.Multimap<K,V> fromMultimap, K key)
public static <K,V> com.google.common.collect.Multimap<K,V> withoutKeys(com.google.common.collect.Multimap<K,V> fromMultimap, Set<K> keys)
public static <K1,K2,V> com.google.common.collect.Multimap<K2,V> transformKeys(com.google.common.collect.Multimap<K1,V> in, com.google.common.base.Function<K1,K2> fn)
K1
- input key typeK2
- output key typeV
- value typein
- input map to transformfn
- how to transform the valuesCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.