Package com.hotels.beans.transformer
Interface Transformer
-
- All Superinterfaces:
Transformer
- All Known Subinterfaces:
BeanTransformer
- All Known Implementing Classes:
TransformerImpl
@Deprecated(since="1.6.0", forRemoval=true) public interface Transformer extends Transformer
Deprecated, for removal: This API element is subject to removal in a future version.This class will be removed since version 1.6.0 please useTransformer
instead.Utility methods for all objects transformation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Transformer
withFieldMapping(FieldMapping... fieldMapping)
Deprecated, for removal: This API element is subject to removal in a future version.usewithFieldMapping(com.hotels.transformer.model.FieldMapping)
instead.Transformer
withFieldTransformer(FieldTransformer... fieldTransformer)
Deprecated, for removal: This API element is subject to removal in a future version.usewithFieldMapping(com.hotels.transformer.model.FieldTransformer)
instead.-
Methods inherited from interface com.hotels.transformer.Transformer
transform, transform
-
-
-
-
Method Detail
-
withFieldMapping
@Deprecated(since="1.6.0", forRemoval=true) Transformer withFieldMapping(FieldMapping... fieldMapping)
Deprecated, for removal: This API element is subject to removal in a future version.usewithFieldMapping(com.hotels.transformer.model.FieldMapping)
instead.Initializes the mapping between fields in the source object and the destination one.- Parameters:
fieldMapping
- the field mapping- Returns:
- the
Transformer
instance
-
withFieldTransformer
@Deprecated(since="1.6.0", forRemoval=true) Transformer withFieldTransformer(FieldTransformer... fieldTransformer)
Deprecated, for removal: This API element is subject to removal in a future version.usewithFieldMapping(com.hotels.transformer.model.FieldTransformer)
instead.Initializes the field transformer functions. The transformer function returns directly the field value.- Parameters:
fieldTransformer
- the fields transformer function- Returns:
- the
Transformer
instance
-
-