Interface ForwardTransformer<FROM,​TO>

  • Type Parameters:
    FROM - FROM which should be transformed to TO
    TO - TO which is transformed from FROM
    All Known Subinterfaces:
    Transformer<FROM,​TO>
    All Known Implementing Classes:
    ObjectToPropertyMapTransformer
    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 ForwardTransformer<FROM,​TO>

    Generic interface for a unidirectional Transformer between a class to another

    Since:
    2.0
    Author:
    Christoph Praschl
    • Method Detail

      • transformFrom

        TO transformFrom​(FROM from)
        Transform FROM object to a TO object
        Parameters:
        from - object to be transformed
        Returns:
        transformed type