Class SpringExpressionFunction<T,​U>

  • Type Parameters:
    T - type of input
    U - type of output
    All Implemented Interfaces:
    Function<T,​U>

    public class SpringExpressionFunction<T,​U>
    extends AbstractSpringExpressionEvaluator<T,​U>
    implements Function<T,​U>
    Function whose output is defined by an Spring EL expression.
    Since:
    5.4.0
    • Constructor Detail

      • SpringExpressionFunction

        public SpringExpressionFunction​(@Nonnull @NotEmpty @ParameterName(name="expression")
                                        String expression)
        Constructor.
        Parameters:
        expression - the expression to evaluate
    • Method Detail

      • apply

        public U apply​(@Nullable
                       T input)
        Specified by:
        apply in interface Function<T,​U>