| Package | Description |
|---|---|
| org.docx4j.com.google.common.base | |
| org.docx4j.com.google.common.cache |
| Modifier and Type | Method and 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,
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(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. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Function<Supplier<T>,T> |
Suppliers.supplierFunction()
Returns a function that accepts a supplier and returns the result of invoking
get() on that supplier. |
| Modifier and Type | Method and 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,
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. |
| Modifier and Type | Method and Description |
|---|---|
static <V> CacheLoader<Object,V> |
CacheLoader.from(Supplier<V> supplier)
Returns a cache loader based on an existing supplier instance.
|
Copyright © 2007-2020. All Rights Reserved.