Interface BeanValueTransformer<T>
- Type Parameters:
T
- the type of the bean
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A
BeanValueTransformer
can be "inserted" into a BeanReader
and
BeanWriter
to modify the value to be returned to the user by the
BeanReader
, or to be written to the bean by the BeanWriter
.-
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 about to be set on a bean.- Parameters:
bean
- the bean that was read or is about to be writtenpropertyName
- the name of the property that was read or is about to be writtenpropertyValue
- the original value- Returns:
- the new value
-