Example usage for Java com.google.common.base Suppliers fields, constructors, methods, implement or subclass
The text is from its open source code.
Supplier | compose(Function super F, T> function, Supplier Returns a new supplier which is the composition of the provided function and supplier. |
Supplier | memoize(Supplier Returns a supplier which caches the instance retrieved during the first call to get() and returns that value on subsequent calls to get() . |
Supplier | memoizeWithExpiration(Supplier Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed. |
Supplier | ofInstance(@Nullable T instance) Returns a supplier that always supplies instance . |