Interface MappingEngine


public interface MappingEngine
Engine that performs mapping operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    <S, D> D
    Creates an instance of the destination type for the context, capturing any errors that may occur during instantiation.
    <S, D> D
    map(MappingContext<S,D> context)
    Maps an instance of type D for the context.
  • Method Details

    • map

      <S, D> D map(MappingContext<S,D> context)
      Maps an instance of type D for the context.
      Type Parameters:
      S - source type
      D - destination type
      Parameters:
      context - to map for
      Returns:
      fully mapped instance of D
    • createDestination

      <S, D> D createDestination(MappingContext<S,D> context)
      Creates an instance of the destination type for the context, capturing any errors that may occur during instantiation.