-
Methods in org.docx4j.com.google.common.base that return Supplier
| Modifier and Type |
Method |
Description |
static <F,
T> Supplier<T> |
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 <T> Supplier<T> |
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 <T> Supplier<T> |
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 <T> Supplier<T> |
Suppliers.ofInstance(@Nullable T instance) |
Returns a supplier that always supplies instance.
|
static <T> Supplier<T> |
Suppliers.synchronizedSupplier(Supplier<T> delegate) |
Returns a supplier whose get() method synchronizes on delegate before calling
it, making it thread-safe.
|
Methods in org.docx4j.com.google.common.base with parameters of type Supplier
| Modifier and Type |
Method |
Description |
static <F,
T> Supplier<T> |
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 <T> Supplier<T> |
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 <T> Supplier<T> |
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 <T> Supplier<T> |
Suppliers.synchronizedSupplier(Supplier<T> delegate) |
Returns a supplier whose get() method synchronizes on delegate before calling
it, making it thread-safe.
|
-