public class SofterCache<T,V>
extends java.lang.Object
Constructor and Description |
---|
SofterCache(NotNullFunction<? super T,? extends V> valueProvider) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
static <T,V> SofterCache<T,V> |
create(NotNullFunction<? super T,? extends V> valueProvider) |
V |
getCachedValue(T key) |
public SofterCache(NotNullFunction<? super T,? extends V> valueProvider)
public static <T,V> SofterCache<T,V> create(NotNullFunction<? super T,? extends V> valueProvider)
public void clearCache()