Class MapEntry<K,​V>

  • Type Parameters:
    K - the type of the key of this entry.
    V - the type of the value of this entry.
    All Implemented Interfaces:
    Map.Entry<K,​V>

    public final class MapEntry<K,​V>
    extends Object
    implements Map.Entry<K,​V>
    Understands an entry in a Map.
    Author:
    Yvonne Wang
    • Field Detail

      • key

        public final K key
      • value

        public final V value
    • Constructor Detail

      • MapEntry

        private MapEntry​(K key,
                         V value)