Interface QuadConsumer<P1,P2,P3,P4>

Type Parameters:
P1 - The first parameter.
P2 - The second parameter.
P3 - The third parameter.
P4 - The fourth parameter.
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<P1,P2,P3,P4>
A consumer that accepts four parameters.
  • Method Details

    • accept

      void accept(P1 p1, P2 p2, P3 p3, P4 p4)
      Consumes the parameters.
      Parameters:
      p1 - The first parameter.
      p2 - The second parameter.
      p3 - The third parameter.
      p4 - The fourth parameter.
    • andThen

      default QuadConsumer<P1,P2,P3,P4> andThen(QuadConsumer<P1,P2,P3,P4> after)
      Chains another consumer on to this one.
      Parameters:
      after - The consumer to run after this one.
      Returns:
      A new consumer that chains both.