A - the type of the first argument to the operationB - the type of the second argument to the operationX - the type of the exception that might be thrown@FunctionalInterface public interface ThrowingBiConsumer<A,B,X extends Exception>
Consumer. Unlike most other functional interfaces, BiConsumer is expected to operate via
side-effects.| Modifier and Type | Method and Description |
|---|---|
void |
accept(A t,
B u)
Performs this operation on the given arguments.
|
default ThrowingBiConsumer<A,B,X> |
andThen(ThrowingBiConsumer<? super A,? super B,? extends X> after)
Returns a composed
BiConsumer that performs, in sequence, this operation followed by the after
operation. |
default ThrowingConsumer<B,X> |
curryFirst(A t)
Get a
ThrowingConsumer by currying the first parameter. |
default ThrowingConsumer<A,X> |
currySecond(B u)
Get
ThrowingConsumer by currying the second parameter. |
default <T> ThrowingBiConsumer<T,B,X> |
mapFirst(ThrowingFunction<? super T,? extends A,X> fun)
Change the first parameter using the supplied mapper.
|
default <T> ThrowingBiConsumer<A,T,X> |
mapSecond(ThrowingFunction<? super T,? extends B,X> fun)
Change the second parameter using the supplied mapper.
|
void accept(A t, B u) throws X extends Exception
default ThrowingBiConsumer<A,B,X> andThen(ThrowingBiConsumer<? super A,? super B,? extends X> after)
BiConsumer 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 operationBiConsumer that performs in sequence this operation followed by the after
operationNullPointerException - if after is nulldefault ThrowingConsumer<B,X> curryFirst(A t)
ThrowingConsumer by currying the first parameter.t - the constant parameterdefault ThrowingConsumer<A,X> currySecond(B u)
ThrowingConsumer by currying the second parameter.u - the constant parameterdefault <T> ThrowingBiConsumer<T,B,X> mapFirst(ThrowingFunction<? super T,? extends A,X> fun)
T - the new type of the first parameterfun - the mapperdefault <T> ThrowingBiConsumer<A,T,X> mapSecond(ThrowingFunction<? super T,? extends B,X> fun)
T - the new type of the second parameterfun - the mapperCopyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.