Class 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 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 MappingConfiguration for 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 - A Consumer that receives a MappingConfiguration and applies further mapping configurations.
        Returns:
        Returns a MappingConfiguration for further configuration.