Class BasicCache<K,V>
- java.lang.Object
-
- org.processmining.specpp.datastructures.util.caching.BasicCache<K,V>
-
- Direct Known Subclasses:
ComputingCache
public class BasicCache<K,V> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<K,V>internalstatic intMAX_CACHE_SIZE
-
Constructor Summary
Constructors Constructor Description BasicCache()BasicCache(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VgetOrCompute(K key, java.util.function.Function<K,V> computer)VgetOrElse(K key, java.util.function.Function<K,V> computer)voidput(K key, V value)
-
-
-
Field Detail
-
MAX_CACHE_SIZE
public static final int MAX_CACHE_SIZE
- See Also:
- Constant Field Values
-
-