Interface ThrowingConsumer10<A,B,C,D,E,F,G,H,I,J,T extends Throwable>
- Type Parameters:
A- The 1st input argument type to be consumedB- The 2nd input argument type to be consumedC- The 3rd input argument type to be consumedD- The 4th input argument type to be consumedE- The 5th input argument type to be consumedF- The 6th input argument type to be consumedG- The 7th input argument type to be consumedH- The 8th input argument type to be consumedI- The 9th input argument type to be consumedJ- The 10th input argument type to be consumedT- The type ofThrowablethrown by the consumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A consumer that takes ten arguments, returns a result,
and may throw a
Throwable.- Version:
- Alpha v.0.3
- Author:
- Logan Ferree (Tadukoo)
-
Method Summary
Modifier and TypeMethodDescriptionvoidTakes ten arguments and consumes them.andThen(ThrowingConsumer10<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? super H, ? super I, ? super J, ? extends T> after) Creates a ThrowingConsumer10 that runs this ThrowingConsumer10 and then also runs the given ThrowingConsumer10 on the same arguments.
-
Method Details
-
accept
Takes ten arguments and consumes them.- Parameters:
a- The 1st argumentb- The 2nd argumentc- The 3rd argumentd- The 4th argumente- The 5th argumentf- The 6th argumentg- The 7th argumenth- The 8th argumenti- The 9th argumentj- The 10th argument- Throws:
T- Determined by the consumer, not required
-
andThen
default ThrowingConsumer10<A,B, andThenC, D, E, F, G, H, I, J, T> (ThrowingConsumer10<? super A, ? super B, ? super C, ? super D, ? super E, ? super F, ? super G, ? super H, ? super I, ? super J, ? extends T> after) Creates a ThrowingConsumer10 that runs this ThrowingConsumer10 and then also runs the given ThrowingConsumer10 on the same arguments.- Parameters:
after- A 2nd ThrowingConsumer10 to run the arguments on after this one- Returns:
- The ThrowingConsumer10 made from composing this one and the given one
-