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 voidclear()Deprecated.booleancontainsKey(java.lang.Object o)Deprecated.booleancontainsValue(java.lang.Object v)Deprecated.java.util.Set<java.util.Map.Entry<K,V>>entrySet()Deprecated.Vget(java.lang.Object o)Deprecated.booleanisEmpty()Deprecated.java.util.Set<K>keySet()Deprecated.Vput(K k, V v)Deprecated.voidputAll(java.util.Map<? extends K,? extends V> map)Deprecated.Vremove(java.lang.Object k)Deprecated.intsize()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.
-
-