Interface ThreeConsumer<T,​U,​V>


  • public interface ThreeConsumer<T,​U,​V>
    Three-consumer version of consumer. Allows wrapping methods with three arguments.
    • Method Detail

      • bindArgs

        static <T,​U,​V> java.util.function.Consumer<T> bindArgs​(ThreeConsumer<? super T,​U,​V> c,
                                                                           U arg2,
                                                                           V arg3)
        Bind arguments to the three consumer to generate a consumer.
         
         ThreeConsumer.bindArgs(MyClass::instanceMethodReference, arg1, arg2).apply(myClassInstance)
         
         
        Returns:
        a Consumer which has the second and third arguments bound.
      • accept

        void accept​(T t,
                    U u,
                    V v)