Class MapEntry<K,​V>

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

    class MapEntry<K,​V>
    extends java.lang.Object
    implements java.util.Map.Entry<K,​V>, java.lang.Cloneable, java.io.Serializable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private K key1  
      private V val1  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapEntry​(K key1, V val1)  
    • Field Detail

      • key1

        private final K key1
      • val1

        private final V val1
    • Constructor Detail

      • MapEntry

        MapEntry​(K key1,
                 V val1)
    • Method Detail

      • getKey

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

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

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

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException