Package io.fluxcapacitor.common
Class DefaultMemoizingSupplier<T>
java.lang.Object
io.fluxcapacitor.common.DefaultMemoizingSupplier<T>
- All Implemented Interfaces:
MemoizingSupplier<T>,Supplier<T>
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultMemoizingSupplier(Supplier<T> delegate) DefaultMemoizingSupplier(Supplier<T> delegate, Duration lifespan, Clock clock) -
Method Summary
-
Constructor Details
-
DefaultMemoizingSupplier
-
DefaultMemoizingSupplier
-
-
Method Details
-
get
-
isCached
public boolean isCached()- Specified by:
isCachedin interfaceMemoizingSupplier<T>
-
clear
public void clear()- Specified by:
clearin interfaceMemoizingSupplier<T>
-