Class ValueCache<K, V, T extends Throwable>
java.lang.Object
com.aparapi.internal.model.ValueCache<K,V,T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceValueCache.ThrowingValueComputer<K, V, T extends Throwable>static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ValueCache.ThrowingValueComputer<K, V, T> private final ConcurrentMap<K, SoftReference<V>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateValueCache(ValueCache.ThrowingValueComputer<K, V, T> computer) -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent(K key) voidstatic <K, V, T extends Throwable>
ValueCache<K, V, T> on(ValueCache.ThrowingValueComputer<K, V, T> computer)
-
Field Details
-
map
-
computer
-
-
Constructor Details
-
ValueCache
-
-
Method Details
-
on
public static <K, V, T extends Throwable> ValueCache<K,V, onT> (ValueCache.ThrowingValueComputer<K, V, T> computer) -
computeIfAbsent
-
invalidate
public void invalidate()
-