Interface TriConsumer<F,​S,​T>

  • 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<F,​S,​T>
    In Java we have the Consumer and BiConsumer interfaces. But in specific use case, we need to have three parameters. The **TriConsumer** is designed for that. However, if you have more than three parameters, the best approach is to define a DTO object as parameter.
    Since:
    17 oct. 2017
    • Method Detail

      • accept

        void accept​(F firstValue,
                    S secondValue,
                    T thirdValue)