Interface TriConsumer<T,U,V>

Type Parameters:
T - first argument type
U - second argument type
V - third argument type
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>
Three-argument variant of Consumer.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t, U u, V v)
    Performs this operation on the given arguments.
    default TriConsumer<T,U,V>
    andThen(TriConsumer<? super T, ? super U, ? super V> after)
    Returns a composed TriConsumer that runs this consumer and then after.
  • Method Details

    • accept

      void accept(T t, U u, V v)
      Performs this operation on the given arguments.
      Parameters:
      t - first argument
      u - second argument
      v - third argument
    • andThen

      default TriConsumer<T,U,V> andThen(TriConsumer<? super T, ? super U, ? super V> after)
      Returns a composed TriConsumer that runs this consumer and then after.
      Parameters:
      after - the consumer to run after this one
      Returns:
      the composed consumer