Interface IMapper<M,​V>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static IMapper IDENTITY
      Identity mapper, maps any passed object to itself in both directions.
    • Field Detail

      • IDENTITY

        static final IMapper IDENTITY
        Identity mapper, maps any passed object to itself in both directions.
    • Method Detail

      • mapModelToView

        V mapModelToView​(M modelValue)
        Maps the model value to some projected view value.
        Parameters:
        modelValue - the model value to map.
        Returns:
        mapped value.
      • mapViewToModel

        M mapViewToModel​(V viewValue)
        Maps the view value to associated model value.
        Parameters:
        viewValue - the view value to map.
        Returns:
        mapped value.