Package lu.kbra.pclib.cache
Class CacheList<K,V,X extends CacheEntry<V>>
java.lang.Object
lu.kbra.pclib.cache.CacheList<K,V,X>
- Direct Known Subclasses:
TimedCacheList
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()computeIfAbsent(K key, Function<? super K, V> func) computeIfPresent(K key, BiFunction<? super K, V, V> func) booleancontainsKey(K key) booleancontainsValue(X value) protected abstract XcreateEntry(V value) entrySet()voidforEach(BiConsumer<? super K, V> consumer) voidforEachEntry(BiConsumer<? super K, X> consumer) protected abstract booleankeySet()voidvoidputIfAbsent(K key, X entry) voidintsize()values()
-
Field Details
-
cache
-
-
Constructor Details
-
CacheList
public CacheList()
-
-
Method Details
-
clear
public void clear() -
compute
-
computeIfAbsent
-
computeIfPresent
-
containsKey
-
containsValue
-
entrySet
-
forEach
-
forEachEntry
-
get
-
getOrPut
-
getOrPut
-
getOrPut
-
keySet
-
put
-
putAll
-
putAll
-
putIfAbsent
-
remove
-
size
public int size() -
values
-
createEntry
-
isInvalid
-