Class CompactHashMap.MapEntry

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

    final class CompactHashMap.MapEntry
    extends AbstractMapEntry<K,​V>
    • Field Detail

      • key

        private final K key
      • lastKnownIndex

        private int lastKnownIndex
    • Constructor Detail

      • MapEntry

        MapEntry​(int index)
    • Method Detail

      • getKey

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

        private void updateLastKnownIndex()
      • getValue

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

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