Interface BiConsumer<T1,T2>

Type Parameters:
T1 - the first value type
T2 - the second value type
All Known Implementing Classes:
Functions.ToMapKeySelector, Functions.ToMapKeyValueSelector, Functions.ToMultimapKeyValueSelector
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 BiConsumer<@NonNull T1,@NonNull T2>
A functional interface (callback) that accepts two values (of possibly different types).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Performs an operation on the given values.
  • Method Details

    • accept

      void accept(@NonNull T1 t1, @NonNull T2 t2) throws Throwable
      Performs an operation on the given values.
      Parameters:
      t1 - the first value
      t2 - the second value
      Throws:
      Throwable - if the implementation wishes to throw any type of exception