Class SetBuilder<S,​D,​RD>

  • Type Parameters:
    S - The source type.
    D - The destination type.
    RD - The destination field type.

    public class SetBuilder<S,​D,​RD>
    extends Object
    Builds a replace operation.
    • Method Detail

      • with

        public MappingConfiguration<S,​D> with​(Function<S,​RD> valueSupplier)
        Sets a value to the specified destination field supplied by a custom value function. The specified function will be applied to the source object reference. Note: It is not necessary to implement a null-safe function. The specified function will never be called with a null argument.
        Parameters:
        valueSupplier - The value supplier that requires a reference to the whole source object.
        Returns:
        Returns the MappingConfiguration for further mapping configuration.
      • with

        public MappingConfiguration<S,​D> with​(Supplier<RD> valueSupplier)
        Sets a value to the specified destination field supplied by a custom value supplier.
        Parameters:
        valueSupplier - The value supplier that requires a reference to the whole source object.
        Returns:
        Returns the MappingConfiguration for further mapping configuration.
      • with

        public MappingConfiguration<S,​D> with​(RD value)
        Sets the specified value to the specified destination field.
        Parameters:
        value - The value to set.
        Returns:
        Returns the MappingConfiguration for further mapping configuration.