T
- Input type 1.U
- Input type 2.R
- Return type.E
- The kind of thrown exception or error.@FunctionalInterface
public interface FailableBiFunction<T,U,R,E extends java.lang.Throwable>
BiFunction
that declares a Throwable
.Modifier and Type | Field and Description |
---|---|
static FailableBiFunction |
NOP
NOP singleton
|
Modifier and Type | Method and Description |
---|---|
default <V> FailableBiFunction<T,U,V,E> |
andThen(FailableFunction<? super R,? extends V,E> after)
Returns a composed
FailableBiFunction that like BiFunction.andThen(Function) . |
R |
apply(T input1,
U input2)
Applies this function.
|
static <T,U,R,E extends java.lang.Throwable> |
nop()
Returns The NOP singleton.
|
static final FailableBiFunction NOP
static <T,U,R,E extends java.lang.Throwable> FailableBiFunction<T,U,R,E> nop()
T
- Consumed type 1.U
- Consumed type 2.R
- Return type.E
- The kind of thrown exception or error.default <V> FailableBiFunction<T,U,V,E> andThen(FailableFunction<? super R,? extends V,E> after)
FailableBiFunction
that like BiFunction.andThen(Function)
.V
- the output type of the after
function, and of the composed function.after
- the operation to perform after this one.FailableBiFunction
that like BiFunction.andThen(Function)
.java.lang.NullPointerException
- when after
is null.R apply(T input1, U input2) throws E extends java.lang.Throwable
input1
- the first input for the functioninput2
- the second input for the functionE
- Thrown when the function fails.E extends java.lang.Throwable
Copyright © 2010 - 2023 Adobe. All Rights Reserved