- Type Parameters:
A- The type of the first input-parameter.
B- The type of the second input-parameter.
C- The type of the third input-parameter.
D- The type of the last input-parameter.
- 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<A,B,C,D>
This is an extension of Java's original functional-interfaces package. The
Functional Interfacedesigned here creates a "Quad Consumer" - a straight-forward extension of
interface java.util.function.Consumer- but instead has an
'accept(...)'method receiving four variable-type parameters instead of just one.
NOTE: Java's Basic Package
java.util.function.*, contains an
BiConsumer, that extends the basic
interface BiConsumer<T, U>. The
interfacethat is implemented here follows a similar vein, but extends the number of generic type-parameters to four, instead of two.
'this'operation on the given arguments.
a- the first input argument
b- the second input argument
c- the third input argument
d- the fourth input argument
default QuadConsumer<A,B,C,D> andThen (QuadConsumer<? super A,? super B,? super C,? super D> after)Returns a composed consumer that performs, in sequence,
'this'operation followed by the after operation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the
'after'operation will not be performed.
after- The operation to perform after this operation
- A composed consumer that performs in sequence
'this'operation followed by the
java.lang.NullPointerException- if parameter
- Exact Method Body: