Interface BackwardTransformer<FROM,​TO>

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

    Generic interface for a reversed unidirectional Transformer between a class to another

    Since:
    2.0
    Author:
    Christoph Praschl
    • Method Detail

      • transformTo

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