Interface Transformer

    • 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.
        use withFieldMapping(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.
        use withFieldMapping(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