@FunctionalInterface public interface PropertyTransformer
Map
in a
functional style. Property transformation can remap property names, adjust values or
change the property map entirely without changing the input.
Implementors usually transform property names to target property names by retaining the value.
Modifier and Type | Method and Description |
---|---|
default PropertyTransformer |
andThen(PropertyTransformer after)
Return a composed transformer function that first applies this filter, and then
applies the
after transformer. |
Map<String,Object> |
transformProperties(Map<String,? extends Object> input)
Transform properties by creating a new map using the transformed property set.
|
Map<String,Object> transformProperties(Map<String,? extends Object> input)
Implementing classes do not change the input
but create a new property map
.
input
- must not be null.default PropertyTransformer andThen(PropertyTransformer after)
after
transformer.after
- the transformer to apply after this transformer is applied.after
transformer.Copyright © 2016–2018 Pivotal Software, Inc.. All rights reserved.