Package fr.gouv.vitam.worker.core.utils
Class FastValueAccessMap<K,V>
- java.lang.Object
-
- fr.gouv.vitam.worker.core.utils.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.
-
-
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.
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object o)
Deprecated.
-
containsValue
public boolean containsValue(java.lang.Object v)
Deprecated.
-
get
public V get(java.lang.Object o)
Deprecated.
-
remove
public V remove(java.lang.Object k)
Deprecated.
-
keySet
public java.util.Set<K> keySet()
Deprecated.
-
values
public java.util.Collection<V> values()
Deprecated.
-
-