Class Types<S>

  • Type Parameters:
    S - The source type.

    public final class Types<S>
    extends Object
    Builder step implementation for the to-method of MappingConfiguration.
    • Method Detail

      • to

        public <D> MappingConfiguration<S,​D> to​(Class<D> destination)
        Specifies the destination type of the specified mapping.
        Parameters:
        destination - The destination type to map to.
        Returns:
        Returns MappingConfiguration for further mapping configurations.
      • to

        public <D> MappingConfiguration<S,​D> to​(D destinationInstance)
        Specifies the source data type to map from. Use this method to provide information about generic types by providing an instance of the object to map.
        Parameters:
        destinationInstance - The source instance.
        Returns:
        Returns a Types object for further mapping configuration.