Java com.google.common.base Suppliers fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.base Suppliers fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.base Suppliers.

The text is from its open source code.

Method

Suppliercompose(Function function, Supplier supplier)
Returns a new supplier which is the composition of the provided function and supplier.
Suppliermemoize(Supplier delegate)
Returns a supplier which caches the instance retrieved during the first call to get() and returns that value on subsequent calls to get() .
SuppliermemoizeWithExpiration(Supplier delegate, long duration, TimeUnit unit)
Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed.
SupplierofInstance(@Nullable T instance)
Returns a supplier that always supplies instance .