Package com.palantir.common.collect
Class MapEntries
- java.lang.Object
-
- com.palantir.common.collect.MapEntries
-
public final class MapEntries extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <F,T,R>
com.google.common.base.Function<Map.Entry<F,R>,Map.Entry<T,R>>applyKey(com.google.common.base.Function<F,T> f)
static <K,V>
com.google.common.base.Predicate<Map.Entry<K,V>>applyKey(com.google.common.base.Predicate<K> f)
static <L,F,T>
com.google.common.base.Function<Map.Entry<L,F>,Map.Entry<L,T>>applyValue(com.google.common.base.Function<F,T> f)
static <K,V>
com.google.common.base.Predicate<Map.Entry<K,V>>applyValue(com.google.common.base.Predicate<V> f)
static <K,V1,V2>
com.google.common.collect.Maps.EntryTransformer<K,V1,V2>entryTransformerFromFun(com.google.common.base.Function<Map.Entry<K,V1>,V2> f)
static <K,V1,V2>
com.google.common.base.Function<Map.Entry<K,V1>,V2>funFromEntryTransformer(com.google.common.collect.Maps.EntryTransformer<K,V1,V2> et)
static <L,R>
com.google.common.base.Function<Map.Entry<L,R>,L>getKeyFunction()
static <L,R>
com.google.common.base.Function<Map.Entry<L,R>,R>getValueFunction()
static <K,V>
voidput(Map<? super K,? super V> map, Map.Entry<K,V> e)
static <K,V>
Map<K,V>putAll(Map<K,V> map, Iterable<? extends Map.Entry<? extends K,? extends V>> it)
static <K,V>
com.google.common.collect.ImmutableMap<K,V>toMap(Iterable<Map.Entry<K,V>> it)
-
-
-
Method Detail
-
getKeyFunction
public static <L,R> com.google.common.base.Function<Map.Entry<L,R>,L> getKeyFunction()
-
getValueFunction
public static <L,R> com.google.common.base.Function<Map.Entry<L,R>,R> getValueFunction()
-
putAll
public static <K,V> Map<K,V> putAll(Map<K,V> map, Iterable<? extends Map.Entry<? extends K,? extends V>> it)
-
toMap
public static <K,V> com.google.common.collect.ImmutableMap<K,V> toMap(Iterable<Map.Entry<K,V>> it)
-
applyValue
public static <L,F,T> com.google.common.base.Function<Map.Entry<L,F>,Map.Entry<L,T>> applyValue(com.google.common.base.Function<F,T> f)
-
applyKey
public static <F,T,R> com.google.common.base.Function<Map.Entry<F,R>,Map.Entry<T,R>> applyKey(com.google.common.base.Function<F,T> f)
-
applyValue
public static <K,V> com.google.common.base.Predicate<Map.Entry<K,V>> applyValue(com.google.common.base.Predicate<V> f)
-
applyKey
public static <K,V> com.google.common.base.Predicate<Map.Entry<K,V>> applyKey(com.google.common.base.Predicate<K> f)
-
funFromEntryTransformer
public static <K,V1,V2> com.google.common.base.Function<Map.Entry<K,V1>,V2> funFromEntryTransformer(com.google.common.collect.Maps.EntryTransformer<K,V1,V2> et)
-
entryTransformerFromFun
public static <K,V1,V2> com.google.common.collect.Maps.EntryTransformer<K,V1,V2> entryTransformerFromFun(com.google.common.base.Function<Map.Entry<K,V1>,V2> f)
-
-