We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
A consumer is a lambda interface that "consumes" all of it's arguments,i.e,it does not return anything.
TriConsumer<String, String, String> printString = (t, u, v) -> { System.out.println(t); System.out.println(u); System.out.println(v); }; printString.accept("Hello World", "How are you?", "I'm good");
The three strings will be printed. QuadriConsumer is used in the same way, except it takes four arguments.
QuadriConsumer