Interface QuadConsumer<T1,T2,T3,T4>

Type Parameters:
T1 - the type of the first argument to the operation
T2 - the type of the second argument to the operation
T3 - the type of the third argument to the operation
T4 - the type of the fourth argument to the operation
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 QuadConsumer<T1,T2,T3,T4>
Represents an operation that accepts two input arguments and returns no result. This is the quad-arity specialization of Consumer. Unlike most other functional interfaces, TriCondumer is expected to operate via side-effects.

This is a functional interface whose functional method is accept(Object, Object, Object, Object).

Since:
1.0.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T1 t1, T2 t2, T3 t3, T4 t4)
    Performs this operation on the given arguments.
    andThen(QuadConsumer<? super T1,? super T2,? super T3,? super T4> after)
    Returns a composed QuadConsumer that performs, in sequence, this operation followed by the after operation.
  • Method Details

    • accept

      void accept(T1 t1, T2 t2, T3 t3, T4 t4)
      Performs this operation on the given arguments.
      Parameters:
      t1 - the first input argument
      t2 - the second input argument
      t3 - the third input argument
      t4 - the fourth input argument
    • andThen

      default QuadConsumer<T1,T2,T3,T4> andThen(QuadConsumer<? super T1,? super T2,? super T3,? super T4> after)
      Returns a composed QuadConsumer that performs, in sequence, this operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after operation will not be performed.
      Parameters:
      after - the operation to perform after this operation
      Returns:
      a composed QuadConsumer that performs in sequence this operation followed by the after operation
      Throws:
      NullPointerException - if after is null