Interface ComposedExpression<T,​A>

  • Type Parameters:
    T - initial type
    A - intermediate type
    All Superinterfaces:
    Expression<T>

    public interface ComposedExpression<T,​A>
    extends Expression<T>
    Specialized Expression interface used when a firstStep() function is first applied to an incomming entity, before a secondStep() expression is applied to get the result. This is typically used to implement operations like Function.compose(Function).
    Since:
    3.1.0
    Author:
    Emil Forslund
    • Method Detail

      • firstStep

        Function<T,​A> firstStep()
        The function that is applied to incoming entities to get the value that is to be passed to secondStep().
        Returns:
        the first step function
      • secondStep

        Expression<A> secondStep()
        The inner expression that is applied to the result of firstStep() to get the result of this full expression.
        Returns:
        the second step expression