Interface BiConsumer<K,V>

Type Parameters:
K - type of the first argument
V - type of the second argument
All Superinterfaces:
BiConsumer<K,V>
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<K,V> extends BiConsumer<K,V>
An operation that accepts two input arguments and returns no result.
Since:
2.7
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(K k, V v)
    Performs the operation given the specified arguments.

    Methods inherited from interface java.util.function.BiConsumer

    andThen
  • Method Details

    • accept

      void accept(K k, V v)
      Performs the operation given the specified arguments.
      Specified by:
      accept in interface BiConsumer<K,V>
      Parameters:
      k - the first input argument
      v - the second input argument