Interface Consumer3<A,B,C>

Type Parameters:
A - Argument 1.
B - Argument 2.
C - Argument 3.
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 Consumer3<A,B,C>
Functional interface for consumers of 3-part arguments.
  • Method Summary

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

    • apply

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

      default <V> Consumer3<A,B,C> andThen(Consumer3<? super A,? super B,? super C> 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.