Interface Consumer4<A,B,C,D>

Type Parameters:
A - Argument 1.
B - Argument 2.
C - Argument 3.
D - Argument 4.
All Known Subinterfaces:
BeanPropertyConsumer
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 Consumer4<A,B,C,D>
Functional interface for consumers of 4-part arguments.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> Consumer4<A,B,C,D>
    andThen(Consumer4<? super A,? super B,? super C,? super D> after)
    Returns a composed Consumer that performs, in sequence, this operation followed by the after operation.
    void
    apply(A a, B b, C c, D d)
    Performs this operation on the given arguments.
  • Method Details

    • apply

      void apply(A a, B b, C c, D d)
      Performs this operation on the given arguments.
      Parameters:
      a - Argument 1.
      b - Argument 2.
      c - Argument 3.
      d - Argument 4.
    • andThen

      default <V> Consumer4<A,B,C,D> andThen(Consumer4<? super A,? super B,? super C,? super D> after)
      Returns a composed Consumer that performs, in sequence, this operation followed by the after operation.
      Type Parameters:
      V - The return type.
      Parameters:
      after - The operation to perform after this operation.
      Returns:
      A composed Consumer that performs in sequence this operation followed by the after operation.