Class SpringExpressionBiConsumer<T,​U>

  • Type Parameters:
    T - first input type
    U - second input type
    All Implemented Interfaces:
    BiConsumer<T,​U>

    public class SpringExpressionBiConsumer<T,​U>
    extends AbstractSpringExpressionEvaluatorEx
    implements BiConsumer<T,​U>
    Predicate whose condition is defined by an Spring EL expression.
    Since:
    6.1.0
    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • inputTypes

        @Nullable
        private Pair<Class<T>,​Class<U>> inputTypes
        Input types.
    • Constructor Detail

      • SpringExpressionBiConsumer

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

      • getInputTypes

        @Nullable
        public Pair<Class<T>,​Class<U>> getInputTypes()
        Get the input type to be enforced.
        Returns:
        input type
      • setInputTypes

        public void setInputTypes​(@Nullable
                                  Pair<Class<T>,​Class<U>> types)
        Set the input types to be enforced.
        Parameters:
        types - the input types
      • accept

        public void accept​(@Nullable
                           T first,
                           @Nullable
                           U second)
        Specified by:
        accept in interface BiConsumer<T,​U>