Interface BiConsumer<A,​B>

  • Type Parameters:
    A - the first element type
    B - the second element type
    All Superinterfaces:
    java.io.Serializable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Stable
    @FunctionalInterface
    public interface BiConsumer<A,​B>
    extends java.io.Serializable
    Apply action to two input elements.
    • Method Detail

      • accept

        void accept​(A first,
                    B second)
        Apply action to first arguments.
        Parameters:
        first - first argument
        second - second argument