Interface Consumer5<A,B,C,D,E>

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 Consumer5<A,B,C,D,E> 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 Summary

    Modifier and Type
    Method
    Description
    default void
    accept(A value1, B value2, C value3, D value4, E value5)
     
    default Consumer5<A,B,C,D,E>
    andThen(Consumer5<? super A,? super B,? super C,? super D,? super E> after)
     
    default Function5<A,B,C,D,E,Unit>
     
    static <A, B, C, D, E>
    Consumer5<A,B,C,D,E>
    of(Consumer5<? super A,? super B,? super C,? super D,? super E> reference)
     
    void
    run(A value1, B value2, C value3, D value4, E value5)
     

    Methods inherited from interface com.github.tonivade.purefun.core.Recoverable

    sneakyThrow
  • Method Details

    • accept

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

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

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

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

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