T - Type of returned valuepublic interface PropertyTransformer<T>
| Modifier and Type | Method and Description |
|---|---|
T |
transform(String value,
Field field)
This method actually transforms value to object instance
|
default T |
transform(String value,
Field field,
Class<?>... types) |
T transform(String value, Field field) throws TransformationException
value - value that will be transformedfield - value will be assigned to this fieldTransformationException - if something went wrongdefault T transform(String value, Field field, Class<?>... types) throws TransformationException
value - value that will be transformedfield - value will be assigned to this fieldtypes - additional types for Function TransformerTransformationException - if something went wrongPropertyTransformer#transform(String, Field)}Copyright © 2014–2015. All rights reserved.