- java.lang.Object
-
- com.remondis.remap.RestructureBuilder<S,D,RD>
-
- Type Parameters:
S- The source type of mapping.D- The destination type of mapping.RD- The type of the destination field.
public class RestructureBuilder<S,D,RD> extends Object
A builder for restructuring a field in the destination type.- Author:
- schuettec
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MappingConfiguration<S,D>applying(Consumer<MappingConfiguration<S,RD>> restructureMappingConfiguration)Adds further mapping configurations to the mapping that is used to restructure the destination object.MappingConfiguration<S,D>implicitly()Tells the mapping, that the destination object can be restructured by simple implicit mappings.
-
-
-
Method Detail
-
implicitly
public MappingConfiguration<S,D> implicitly()
Tells the mapping, that the destination object can be restructured by simple implicit mappings. Use this method if no custom mappings are required to build the destination object.- Returns:
- Returns a
MappingConfigurationfor further configuration.
-
applying
public MappingConfiguration<S,D> applying(Consumer<MappingConfiguration<S,RD>> restructureMappingConfiguration)
Adds further mapping configurations to the mapping that is used to restructure the destination object. Use this method, if custom mappings are required to build the destination object.- Parameters:
restructureMappingConfiguration- AConsumerthat receives aMappingConfigurationand applies further mapping configurations.- Returns:
- Returns a
MappingConfigurationfor further configuration.
-
-