Interface BiConsumer<T,U>

Type Parameters:
T - the type of the input to the operation

public interface BiConsumer<T,U>
Represents an operation that accepts two input arguments and returns no result. This is the two-arity specialization of Consumer. Unlike most other functional interfaces, BiConsumer is expected to operate via side-effects.

This is a functional interface whose functional method is accept(Object, Object).

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t, U u)
    Performs this operation on the given argument.
  • Method Details

    • accept

      void accept(T t, U u)
      Performs this operation on the given argument.
      Parameters:
      t - the first input argument
      t - the second input argument