Class ImmutableMapEntry<K,​V>

  • All Implemented Interfaces:
    java.util.Map.Entry<K,​V>

    public final class ImmutableMapEntry<K,​V>
    extends Pair<K,​V>
    implements java.util.Map.Entry<K,​V>
    A Pair which may be used as a Map.Entry.
    • Constructor Detail

      • ImmutableMapEntry

        public ImmutableMapEntry​(K key,
                                 V value)
    • Method Detail

      • entry

        public static <K,​V> java.util.Map.Entry<K,​V> entry​(K key,
                                                                       V value)
      • make

        public static <K,​V> ImmutableMapEntry<K,​V> make​(@Nonnull
                                                                    java.util.Map.Entry<K,​V> entry)
      • getKey

        public final K getKey()
        Specified by:
        getKey in interface java.util.Map.Entry<K,​V>
      • getValue

        public final V getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<K,​V>
      • setValue

        public final V setValue​(V value)
        Specified by:
        setValue in interface java.util.Map.Entry<K,​V>