Class FastValueAccessMap<K,​V>

  • All Implemented Interfaces:
    java.util.Map<K,​V>

    public class FastValueAccessMap<K,​V>
    extends java.lang.Object
    implements java.util.Map<K,​V>
    Deprecated.
    Hacky implementation for HashMap with fast "containsKey" O(1) method. Refactoring existing code is too risky and requires a full rewrite of ExtractSedaActionHandler and ArchiveUnitListener classes. Entry values are stored in a dedicated Map of Key to Integer Counter that tracks the values and their reference count. Null values are wrapped over a NULL_VALUE_OBJ object because HashMap implementation does not support nulls are keys. Sorry for the inconvenience.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

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

      Constructors 
      Constructor Description
      FastValueAccessMap()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void clear()
      Deprecated.
       
      boolean containsKey​(java.lang.Object o)
      Deprecated.
       
      boolean containsValue​(java.lang.Object v)
      Deprecated.
       
      java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
      Deprecated.
       
      V get​(java.lang.Object o)
      Deprecated.
       
      boolean isEmpty()
      Deprecated.
       
      java.util.Set<K> keySet()
      Deprecated.
       
      V put​(K k, V v)
      Deprecated.
       
      void putAll​(java.util.Map<? extends K,​? extends V> map)
      Deprecated.
       
      V remove​(java.lang.Object k)
      Deprecated.
       
      int size()
      Deprecated.
       
      java.util.Collection<V> values()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • FastValueAccessMap

        public FastValueAccessMap()
        Deprecated.
    • Method Detail

      • size

        public int size()
        Deprecated.
        Specified by:
        size in interface java.util.Map<K,​V>
      • isEmpty

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

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

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

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

        public V put​(K k,
                     V v)
        Deprecated.
        Specified by:
        put in interface java.util.Map<K,​V>
      • remove

        public V remove​(java.lang.Object k)
        Deprecated.
        Specified by:
        remove in interface java.util.Map<K,​V>
      • putAll

        public void putAll​(java.util.Map<? extends K,​? extends V> map)
        Deprecated.
        Specified by:
        putAll in interface java.util.Map<K,​V>
      • clear

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

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

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

        public java.util.Set<java.util.Map.Entry<K,​V>> entrySet()
        Deprecated.
        Specified by:
        entrySet in interface java.util.Map<K,​V>