Interface BiConsumer<K,​V>

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

      All Methods Instance Methods Abstract Methods 
      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 Detail

      • accept

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