T - the type of the cached value@FunctionalInterface
public interface CachedValueProvider<T>
CachedValue to calculate a result and cache it.
The provider should not have side effects and shouldn't depend on variables that change during CachedValue lifetime. See
CachedValue documentation for examples.| Modifier and Type | Interface and Description |
|---|---|
static class |
CachedValueProvider.Result<T>
The object holding the value to cache and the dependencies indicating when that value will be outdated
|
| Modifier and Type | Method and Description |
|---|---|
CachedValueProvider.Result<T> |
compute() |
CachedValueProvider.Result<T> compute()