| Package | Description |
|---|---|
| ch.awae.utils.functional |
A set of functional types and interfaces.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Function1<A,T> |
| Modifier and Type | Method and Description |
|---|---|
default <S> FailableFunction1<A,S> |
FailableFunction1.andThen(FailableFunction1<? super T,? extends S> f) |
default <V> FailableFunction1<V,T> |
FailableFunction1.compose(FailableFunction1<? super V,? extends A> f) |
| Modifier and Type | Method and Description |
|---|---|
default <S> FailableFunction1<A,S> |
FailableFunction1.andThen(FailableFunction1<? super T,? extends S> f) |
default <S> FailableFunction0<S> |
FailableFunction0.andThen(FailableFunction1<T,S> f) |
default <V> FailableFunction1<V,T> |
FailableFunction1.compose(FailableFunction1<? super V,? extends A> f) |
abstract <E> Result<E> |
Result.flatMap(FailableFunction1<T,Result<E>> mapper)
Applies the mapping function to the value of the result and returns the
result returned by the mapping function.
|
abstract Result<T> |
Result.flatMapException(FailableFunction1<java.lang.Throwable,Result<T>> mapper)
Applies the mapping function to the exception and returns the result
returned by it.
|
abstract <E> Result<E> |
Result.map(FailableFunction1<T,E> mapper)
Applies the mapping function to the value of the result (if it exists).
|
<S> Try<S> |
Try.map(FailableFunction1<T,S> f) |
abstract Result<T> |
Result.mapException(FailableFunction1<java.lang.Throwable,T> mapper)
Applies the mapping function to the exception.
|
Try<T> |
Try.recover(FailableFunction1<java.lang.Throwable,Try<T>> f) |
Copyright © 2018. All Rights Reserved.