Class ArrayTable.ArrayMap<K,​V>

    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ImmutableMap<K,​java.lang.Integer> keyIndex  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ArrayMap​(ImmutableMap<K,​java.lang.Integer> keyIndex)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(java.lang.Object key)  
      (package private) java.util.Iterator<java.util.Map.Entry<K,​V>> entryIterator()  
      V get​(java.lang.Object key)  
      (package private) K getKey​(int index)  
      (package private) abstract java.lang.String getKeyRole()  
      (package private) abstract V getValue​(int index)  
      boolean isEmpty()  
      java.util.Set<K> keySet()  
      V put​(K key, V value)  
      V remove​(java.lang.Object key)  
      (package private) abstract V setValue​(int index, V newValue)  
      int size()  
      • Methods inherited from class java.util.AbstractMap

        clone, containsValue, equals, hashCode, putAll, toString, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Field Detail

      • keyIndex

        private final ImmutableMap<K,​java.lang.Integer> keyIndex
    • Constructor Detail

      • ArrayMap

        private ArrayMap​(ImmutableMap<K,​java.lang.Integer> keyIndex)
    • Method Detail

      • keySet

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

        K getKey​(int index)
      • getKeyRole

        abstract java.lang.String getKeyRole()
      • getValue

        @Nullable
        abstract V getValue​(int index)
      • setValue

        @Nullable
        abstract V setValue​(int index,
                            V newValue)
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<K,​V>
        Overrides:
        isEmpty in class java.util.AbstractMap<K,​V>
      • containsKey

        public boolean containsKey​(@Nullable
                                   java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<K,​V>
        Overrides:
        containsKey in class java.util.AbstractMap<K,​V>
      • get

        public V get​(@Nullable
                     java.lang.Object key)
        Specified by:
        get in interface java.util.Map<K,​V>
        Overrides:
        get in class java.util.AbstractMap<K,​V>
      • put

        public V put​(K key,
                     V value)
        Specified by:
        put in interface java.util.Map<K,​V>
        Overrides:
        put in class java.util.AbstractMap<K,​V>
      • remove

        public V remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<K,​V>
        Overrides:
        remove in class java.util.AbstractMap<K,​V>