Class MapEntry<K,​V>

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

    public final class MapEntry<K,​V>
    extends java.lang.Object
    implements java.util.Map.Entry<K,​V>
    • Constructor Summary

      Constructors 
      Constructor Description
      MapEntry​(K key, V value)  
    • Constructor Detail

      • MapEntry

        public MapEntry​(@NotNull
                        K key,
                        @Nullable
                        V value)
    • Method Detail

      • getKey

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

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

        @Nullable
        public V setValue​(V v)
        Specified by:
        setValue in interface java.util.Map.Entry<K,​V>
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object o)
        Specified by:
        equals in interface java.util.Map.Entry<K,​V>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map.Entry<K,​V>
        Overrides:
        hashCode in class java.lang.Object