Class EntryPair.ObjectObject<K,​V>

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

    public static final class EntryPair.ObjectObject<K,​V>
    extends java.lang.Object
    implements EntryPair<K,​V>
    • Field Detail

      • myKey

        private final K myKey
      • myValue

        private final V myValue
    • Constructor Detail

      • ObjectObject

        ObjectObject​(K key,
                     V value)
    • Method Detail

      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<K,​V>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<K,​V>
      • equals

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

        public V get​(java.lang.Object key)
        Specified by:
        get in interface java.util.Map<K,​V>
      • getKey

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

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

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

        public java.util.Set<K> keySet()
        Specified by:
        keySet in interface java.util.Map<K,​V>
      • left

        public K left()
        Specified by:
        left in interface KeyValue<K,​V>
      • toString

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

        public java.util.Collection<V> values()
        Specified by:
        values in interface java.util.Map<K,​V>