Interface FailableFunction<T,R,E extends Throwable>  
- Type Parameters:
- T- Input type 1.
- R- Return type.
- E- The kind of thrown exception or error.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Since:
- 3.11
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault <V> FailableFunction<T,V, E> andThen(FailableFunction<? super R, ? extends V, E> after) Returns a composedFailableFunctionlikeFunction.andThen(Function).Applies this function.default <V> FailableFunction<V,R, E> compose(FailableFunction<? super V, ? extends T, E> before) Returns a composedFailableFunctionlikeFunction.compose(Function).static <T,R, E extends Throwable> 
 FailableFunction<T,R, E> function(FailableFunction<T, R, E> function) Starts a fluent chain likefunction(foo::bar).andThen(...).andThen(...).apply(...);static <T,E extends Throwable> 
 FailableFunction<T,T, E> identity()Returns a function that always returns its input argument.static <T,R, E extends Throwable> 
 FailableFunction<T,R, E> nop()Returns The NOP singleton.
- 
Field Details- 
NOPNOP singleton
 
- 
- 
Method Details- 
functionstatic <T,R, FailableFunction<T,E extends Throwable> R, functionE> (FailableFunction<T, R, E> function) Starts a fluent chain likefunction(foo::bar).andThen(...).andThen(...).apply(...);- Type Parameters:
- T- Input type.
- R- Return type.
- E- The kind of thrown exception or error.
- Parameters:
- function- the argument to return.
- Returns:
- the argument
- Since:
- 3.14.0
 
- 
identityReturns a function that always returns its input argument.- Type Parameters:
- T- the type of the input and output objects to the function
- E- The kind of thrown exception or error.
- Returns:
- a function that always returns its input argument
 
- 
nopReturns The NOP singleton.- Type Parameters:
- T- Consumed type.
- R- Return type.
- E- The kind of thrown exception or error.
- Returns:
- The NOP singleton.
 
- 
andThenReturns a composedFailableFunctionlikeFunction.andThen(Function).- Type Parameters:
- V- the output type of the- afterfunction, and of the composed function.
- Parameters:
- after- the operation to perform after this one.
- Returns:
- a composed FailableFunctionlikeFunction.andThen(Function).
- Throws:
- NullPointerException- when- afteris null.
 
- 
applyApplies this function.- Parameters:
- input- the input for the function
- Returns:
- the result of the function
- Throws:
- E- Thrown when the function fails.
 
- 
composeReturns a composedFailableFunctionlikeFunction.compose(Function).- Type Parameters:
- V- the input type to the- beforefunction, and to the composed function.
- Parameters:
- before- the operator to apply before this one.
- Returns:
- a composed FailableFunctionlikeFunction.compose(Function).
- Throws:
- NullPointerException- if before is null.
- See Also:
 
 
-