Interface NonnullFirstBiConsumer<T,V>

  • Type Parameters:
    T - first argument value type
    V - second argument value 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 NonnullFirstBiConsumer<T,V>
    An equivalent to BiConsumer, where the first argument is non-null.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void accept​(T first, V second)
      The caller must assert the non-null validity of the arguments; the receiver should safely assume the argument is non-null.
    • Method Detail

      • accept

        void accept​(@Nonnull
                    T first,
                    @Nullable
                    V second)
        The caller must assert the non-null validity of the arguments; the receiver should safely assume the argument is non-null.
        Parameters:
        first - first argument, which must be non-null
        second - second argument.