|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Supplier | |
|---|---|
| com.google.common.base | Basic utility libraries and interfaces. |
| Uses of Supplier in com.google.common.base |
|---|
| Methods in com.google.common.base that return Supplier | ||
|---|---|---|
static
|
Suppliers.compose(Function<? super F,T> function,
Supplier<F> supplier)
Returns a new supplier which is the composition of the provided function and supplier. |
|
static
|
Suppliers.memoize(Supplier<T> delegate)
Returns a supplier which caches the instance retrieved during the first call to get() and returns that value on subsequent calls to
get(). |
|
static
|
Suppliers.memoizeWithExpiration(Supplier<T> delegate,
long duration,
java.util.concurrent.TimeUnit unit)
Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed. |
|
static
|
Suppliers.ofInstance(T instance)
Returns a supplier that always supplies instance. |
|
static
|
Suppliers.synchronizedSupplier(Supplier<T> delegate)
Returns a supplier whose get() method synchronizes on
delegate before calling it, making it thread-safe. |
|
| Methods in com.google.common.base with parameters of type Supplier | ||
|---|---|---|
static
|
Suppliers.compose(Function<? super F,T> function,
Supplier<F> supplier)
Returns a new supplier which is the composition of the provided function and supplier. |
|
static
|
Suppliers.memoize(Supplier<T> delegate)
Returns a supplier which caches the instance retrieved during the first call to get() and returns that value on subsequent calls to
get(). |
|
static
|
Suppliers.memoizeWithExpiration(Supplier<T> delegate,
long duration,
java.util.concurrent.TimeUnit unit)
Returns a supplier that caches the instance supplied by the delegate and removes the cached value after the specified time has passed. |
|
static
|
Suppliers.synchronizedSupplier(Supplier<T> delegate)
Returns a supplier whose get() method synchronizes on
delegate before calling it, making it thread-safe. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||