Package com.aparapi.internal.model
Class ValueCache<K,V,T extends java.lang.Throwable>
- java.lang.Object
-
- com.aparapi.internal.model.ValueCache<K,V,T>
-
public final class ValueCache<K,V,T extends java.lang.Throwable> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ValueCache.ThrowingValueComputer<K,V,T extends java.lang.Throwable>
static interface
ValueCache.ValueComputer<K,V>
-
Constructor Summary
Constructors Modifier Constructor Description private
ValueCache(ValueCache.ThrowingValueComputer<K,V,T> computer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description V
computeIfAbsent(K key)
void
invalidate()
static <K,V,T extends java.lang.Throwable>
ValueCache<K,V,T>on(ValueCache.ThrowingValueComputer<K,V,T> computer)
-
-
-
Constructor Detail
-
ValueCache
private ValueCache(ValueCache.ThrowingValueComputer<K,V,T> computer)
-
-
Method Detail
-
on
public static <K,V,T extends java.lang.Throwable> ValueCache<K,V,T> on(ValueCache.ThrowingValueComputer<K,V,T> computer)
-
computeIfAbsent
public V computeIfAbsent(K key) throws T extends java.lang.Throwable
- Throws:
T extends java.lang.Throwable
-
invalidate
public void invalidate()
-
-