Package org.n52.janmayen.function
Interface ThrowingTriConsumer<A,B,C,X extends Exception>
- Type Parameters:
A- the type of the first argument to the operationB- the type of the second argument to the operationC- the type of the third argument to the operationX- the type of the thrown exception
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
TODO JavaDoc
-
Method Summary
Modifier and TypeMethodDescriptionvoiddefault ThrowingTriConsumer<A, B, C, X> Returns a composedThrowingTriConsumerthat performs, in sequence, this operation followed by theafteroperation.default ThrowingBiConsumer<B, C, X> curryFirst(A a) default ThrowingBiConsumer<A, C, X> currySecond(B b) default ThrowingBiConsumer<A, B, X> curryThird(C c) default <T> ThrowingTriConsumer<T, B, C, X> mapFirst(ThrowingFunction<? super T, ? extends A, X> fun) default <T> ThrowingTriConsumer<A, T, C, X> mapSecond(ThrowingFunction<? super T, ? extends B, X> fun) default <T> ThrowingTriConsumer<A, B, T, X> mapThird(ThrowingFunction<? super T, ? extends C, X> fun)
-
Method Details
-
accept
- Throws:
X
-
andThen
default ThrowingTriConsumer<A,B, andThenC, X> (ThrowingTriConsumer<? super A, ? super B, ? super C, ? extends X> after) Returns a composedThrowingTriConsumerthat performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Parameters:
after- the operation to perform after this operation- Returns:
- a composed
ThrowingTriConsumerthat performs in sequence this operation followed by theafteroperation - Throws:
NullPointerException- ifafteris null
-
curryFirst
-
currySecond
-
curryThird
-
mapFirst
-
mapSecond
-
mapThird
-