Package com.aparapi.internal.model
Class ValueCache<K,V,T extends Throwable>
java.lang.Object
com.aparapi.internal.model.ValueCache<K,V,T>
public final class ValueCache<K,V,T extends Throwable> extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ValueCache.ThrowingValueComputer<K,V,T extends Throwable>
static interface
ValueCache.ValueComputer<K,V>
-
Method Summary
Modifier and Type Method Description V
computeIfAbsent(K key)
void
invalidate()
static <K, V, T extends Throwable>
ValueCache<K,V,T>on(ValueCache.ThrowingValueComputer<K,V,T> computer)
-
Method Details
-
on
public static <K, V, T extends Throwable> ValueCache<K,V,T> on(ValueCache.ThrowingValueComputer<K,V,T> computer) -
computeIfAbsent
-
invalidate
public void invalidate()
-