public interface Customizer<TOCUSTOMIZE>
Modifier and Type | Method and Description |
---|---|
void |
customize(TOCUSTOMIZE tocustomize) |
static <T,K> Customizer<T> |
once(Customizer<T> customizer,
Function<? super T,? extends K> keyMapper)
Create a wrapped customizer that guarantees that the
customize(Object)
method of the delegated customizer is called at most once per target. |
void customize(TOCUSTOMIZE tocustomize)
static <T,K> Customizer<T> once(Customizer<T> customizer, Function<? super T,? extends K> keyMapper)
customize(Object)
method of the delegated customizer
is called at most once per target.T
- the type of the target to customizeK
- the type of the identifier of the targetcustomizer
- a customizer to be delegatedkeyMapper
- a mapping function to produce the identifier of the targetCopyright © 2022 Pivotal Software, Inc.. All rights reserved.