Class MapEntries


  • public final class MapEntries
    extends Object
    • 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)
      • put

        public static <K,​V> void put​(Map<? super K,​? super V> map,
                                           Map.Entry<K,​V> e)
      • 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)