Package org.apache.jackrabbit.vault.util
Class CachingSupplier<T>
java.lang.Object
org.apache.jackrabbit.vault.util.CachingSupplier<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Supplier<T>
A supplier wrapper which caches the supplied values. This class is not threadsafe!
- Since:
- FileVault 4.0.2
-
Method Summary
Modifier and TypeMethodDescriptionget()Uses the cached value from previous get() calls instead of contacting the underlying delegatestatic <T> CachingSupplier<T>