Interface TriConsumer<T,​U,​V>

  • Type Parameters:
    T - The first argument type.
    U - The second argument type.
    V - The 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>
    Similar to BiConsumer, but accepts three arguments.
    • Method Detail

      • accept

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

        default TriConsumer<T,​U,​V> andThen​(TriConsumer<? super T,​? super U,​? super V> after)
        Returns a composed TriConsumer that performs, in sequence, this operation followed by the after operation.
        Parameters:
        after - the operation to perform after this operation
        Returns:
        a composed TriConsumer
        Throws:
        java.lang.NullPointerException - if after is null