Class SimpleCache<K,V>
java.lang.Object
com.foursoft.harness.navext.runtime.cache.SimpleCache<K,V>
- Type Parameters:
K- The type of the keyV- The type of the value
Simple Cache, loading the value for a key via a
CacheLoader. Caching
the results in a HashMap. For each key, the CacheLoader is
only called once.- Author:
- becker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget the value for a given keyAll loaded values that are currently initialized in this cache.
-
Constructor Details
-
Method Details
-
get
get the value for a given key- Parameters:
key- the key- Returns:
- the value, maybe Null
-
getAllLoadedValues
All loaded values that are currently initialized in this cache.- Returns:
- returning all values of the cache
-