Class CachedHashMap<E,F>
java.lang.Object
java.util.AbstractMap<E,F>
java.util.HashMap<E,F>
jmt.framework.data.CachedHashMap<E,F>
- All Implemented Interfaces:
Serializable, Cloneable, Map<E,F>
Created by IntelliJ IDEA.
User: orsotronIII
Date: 28-giu-2005
Time: 17.07.42
This class is an optimized version of an
HashMap. Optimization
is focused on multiple acesses. This implementation provides a single-element cache
for speed-up of data search operations, in particular the most recently requested
element is stored to assure a faster search.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, newHashMap, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class AbstractMap
equals, hashCode, toString
-
Constructor Details
-
CachedHashMap
public CachedHashMap()
-
-
Method Details
-
get
-
put
-