| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function |
| Modifier and Type | Method and Description |
|---|---|
<U> Exceptional<U> |
Exceptional.map(ThrowableFunction<? super T,? extends U,Throwable> mapper)
Invokes mapping function on inner value if there were no exceptions.
|
Exceptional<T> |
Exceptional.recover(ThrowableFunction<Throwable,? extends T,Throwable> function)
Returns current
Exceptional if there were no exceptions, otherwise
calls function and wraps produced result with an Exceptional. |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> Function<T,R> |
Function.Util.safe(ThrowableFunction<? super T,? extends R,Throwable> throwableFunction)
Creates a safe
Function, |
static <T,R> Function<T,R> |
Function.Util.safe(ThrowableFunction<? super T,? extends R,Throwable> throwableFunction,
R resultIfFailed)
Creates a safe
Function, |
Copyright © 2017. All rights reserved.