Interface ThreeConsumer<T,U,V>


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

    Modifier and Type
    Method
    Description
    void
    accept(T t, U u, V v)
     
    static <T, U, V> Consumer<T>
    bindArgs(ThreeConsumer<? super T,U,V> c, U arg2, V arg3)
    Bind arguments to the three consumer to generate a consumer.
  • Method Details

    • bindArgs

      static <T, U, V> 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)