Package io.deephaven.util.datastructures
Class CachingSupplier<OUTPUT_TYPE>
java.lang.Object
io.deephaven.util.datastructures.CachingSupplier<OUTPUT_TYPE>
- Type Parameters:
OUTPUT_TYPE- the type of results supplied by this supplier
- All Implemented Interfaces:
Supplier<OUTPUT_TYPE>
Supplier wrapper that caches the result.-
Constructor Summary
ConstructorsConstructorDescriptionCachingSupplier(@NotNull Supplier<OUTPUT_TYPE> internalSupplier) Construct aSupplierwrapper. -
Method Summary
-
Constructor Details
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<OUTPUT_TYPE>
-
getIfCached
-