Interface ThrowingConsumer3<A,B,C,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 consumedT
- The type ofThrowable
thrown 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 three arguments, returns a result,
and may throw a
Throwable
.- Version:
- 0.1-Alpha-SNAPSHOT
- Author:
- Logan Ferree (Tadukoo)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Takes three arguments and consumes them.default ThrowingConsumer3<A,
B, C, T> Creates a ThrowingConsumer3 that runs this ThrowingConsumer3 and then also runs the given ThrowingConsumer3 on the same arguments.
-
Method Details
-
accept
Takes three arguments and consumes them.- Parameters:
a
- The 1st argumentb
- The 2nd argumentc
- The 3rd argument- Throws:
T
- Determined by the consumer, not required
-
andThen
default ThrowingConsumer3<A,B, andThenC, T> (ThrowingConsumer3<? super A, ? super B, ? super C, ? extends T> after) Creates a ThrowingConsumer3 that runs this ThrowingConsumer3 and then also runs the given ThrowingConsumer3 on the same arguments.- Parameters:
after
- A 2nd ThrowingConsumer3 to run the arguments on after this one- Returns:
- The ThrowingConsumer3 made from composing this one and the given one
-