Interface QuadConsumer<T,U,V,W>

Type Parameters:
T - The type of the first argument
U - The type of the second argument
V - The type of the third argument
W - The type of the fourth argument
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 QuadConsumer<T,U,V,W>
Functional interface that takes four arguments and consumes them.
The FunctionalInterface method is accept(Object, Object, Object, Object).
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(T t, U u, V v, W w)
    Takes four arguments and consumes them.
    default @NotNull QuadConsumer<T,U,V,W>
    andThen(@NotNull QuadConsumer<? super T,? super U,? super V,? super W> after)
    Returns a composed consumer of same type that performs,
    in sequence, this operation followed by the after operation.
  • Method Details

    • accept

      void accept(T t, U u, V v, W w)
      Takes four arguments and consumes them.
      Parameters:
      t - The first argument
      u - The second argument
      v - The third argument
      w - The fourth argument
    • andThen

      @NotNull default @NotNull QuadConsumer<T,U,V,W> andThen(@NotNull @NotNull QuadConsumer<? super T,? super U,? super V,? super W> after)
      Returns a composed consumer of same type that performs,
      in sequence, this operation followed by the after operation.
      Parameters:
      after - The operation to perform after this operation
      Returns:
      The composed consumer
      Throws:
      NullPointerException - If the after operation is null