protected static class AbstractCachingConfiguration.CachingConfigurerSupplier extends Object
Constructor and Description |
---|
CachingConfigurerSupplier(Supplier<CachingConfigurer> supplier) |
Modifier and Type | Method and Description |
---|---|
<T> Supplier<T> |
adapt(Function<CachingConfigurer,T> provider)
Adapt the
CachingConfigurer supplier to another supplier
provided by the specified mapping function. |
public CachingConfigurerSupplier(Supplier<CachingConfigurer> supplier)
@Nullable public <T> Supplier<T> adapt(Function<CachingConfigurer,T> provider)
CachingConfigurer
supplier to another supplier
provided by the specified mapping function. If the underlying
CachingConfigurer
is null
, null
is returned
and the mapping function is not invoked.T
- the type of the supplierprovider
- the provider to use to adapt the supplier