Interface Consumer4<A,B,C,D>

Type Parameters:
A - the type of first parameter received by the function
B - the type of second parameter received by the function
C - the type of third parameter received by the function
D - the type of fourth parameter received by the function
All Superinterfaces:
Recoverable
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> extends Recoverable

This interface represents a function that receives four parameters but it doesn't generate any result.

It's like a Function4<A, B, C, D, Unit>

  • Method Details

    • accept

      default void accept(A value1, B value2, C value3, D value4)
    • run

      void run(A value1, B value2, C value3, D value4) throws Throwable
      Throws:
      Throwable
    • andThen

      default Consumer4<A,B,C,D> andThen(Consumer4<? super A,? super B,? super C,? super D> after)
    • asFunction

      default Function4<A,B,C,D,Unit> asFunction()
    • of

      static <A, B, C, D> Consumer4<A,B,C,D> of(Consumer4<? super A,? super B,? super C,? super D> reference)