Interface TriConsumer<T,U,V>

Type Parameters:
T - The type of the first argument
U - The type of the second argument
V - The type of the third argument
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 TriConsumer<T,U,V>
Functional interface that takes three arguments and consumes them.
The FunctionalInterface method is accept(Object, Object, Object).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t, U u, V v)
    Takes three arguments and consumes them.
    default @NotNull TriConsumer<T,U,V>
    andThen(@NotNull TriConsumer<? super T,? super U,? super V> after)
    Returns a composed consumer of same type that performs, in sequence,
    this operation followed by the after operation.
  • Method Details

    • accept

      void accept(T t, U u, V v)
      Takes three arguments and consumes them.
      Parameters:
      t - The first argument
      u - The second argument
      v - The third argument
    • andThen

      @NotNull default @NotNull TriConsumer<T,U,V> andThen(@NotNull @NotNull TriConsumer<? super T,? super U,? super V> after)
      Returns a composed consumer of same type that performs, in sequence,
      this operation followed by the after operation.
      Parameters:
      after - The operation to perform after this operation
      Returns:
      The composed consumer
      Throws:
      NullPointerException - If the after operation is null