- Type Parameters:
T- the type of the bean
public interface BeanValueTransformer<T>
A function that can be applied to transform a value just retrieved from a bean, or
about to be set on a bean. A
BeanValueTransformer can be "inserted" into a
BeanReader and BeanWriter to modify the value that was read, or is
about to be written, respectively.-
Method Summary
-
Method Details
-
identity
The no-op transformer. Returns the property value as-is.- Type Parameters:
T- the type of the bean- Returns:
- the property value as-is
-
transform
Transforms the value just retrieved from a bean, or to be set on a bean.- Parameters:
bean- the bean that was read or is about to be writtenpropertyName- the property that was read or is about to be writtenpropertyValue- the value to be transformed- Returns:
- the new value
-