Interface NonnullBiConsumer<T,V>

  • Type Parameters:
    T - first parameter type
    V - second parameter type
    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 NonnullBiConsumer<T,V>
    An equivalent to BiConsumer, where the parameters are non-null.
    • Method Detail

      • accept

        void accept​(@Nonnull
                    T first,
                    @Nonnull
                    V second)
        Accept the two values into the consumer. The caller must assert the non-null validity of the arguments; the receiver should safely assume the arguments are non-null.
        Parameters:
        first - first parameter value.
        second - second parameter value