Interface FieldSelector<T>

  • Type Parameters:
    T - The object type selecting a field on.
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface FieldSelector<T>
    This class defines the lambda that receives an object of either a source or destination type. The lambda is implemented with calling the get-method to select the corresponding property. The mapping framework then detects the get-method invocation on the destination object and selects the corresponding property for further mapping configuration. The mapping configuration is specified with the surrounding configuration method like MappingConfiguration.omitInDestination(FieldSelector),MappingConfiguration.omitInSource(FieldSelector) .
    Author:
    schuettec
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void selectField​(T destination)
      This method is used to perform a get-method invocation of the specified destination object.
    • Method Detail

      • selectField

        void selectField​(T destination)
        This method is used to perform a get-method invocation of the specified destination object. This invocation tells the mapper which property is to be selected for the following configuration.
        Parameters:
        destination - The destination object to perform a get-method invocation on.