| Constructor and Description |
|---|
SolvedPromise(Try<T> value) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(java.util.function.Function<HK<Promise,T,Promise<T>>,R> f) |
HK<Promise,T,Promise<T>> |
filter(java.util.function.Predicate<? super T> predicate)
Method called when the current data must be filtered using a given predicate.
|
<R> Promise<R> |
flatmap(java.util.function.Function<? super T,Promise<R>> function)
Method use to flatmap a function.
|
<R> Promise<R> |
map(FunctionWithError<? super T,? extends R> function)
Method use to map a function.
|
Promise<T> |
self() |
createFuture, getFuture, onComplete, onFailure, onSuccess, solvepublic <R> R accept(java.util.function.Function<HK<Promise,T,Promise<T>>,R> f)
public final <R> Promise<R> map(FunctionWithError<? super T,? extends R> function)
Promisepublic final <R> Promise<R> flatmap(java.util.function.Function<? super T,Promise<R>> function)
Promisepublic HK<Promise,T,Promise<T>> filter(java.util.function.Predicate<? super T> predicate)
FilterCopyright © 2017. All rights reserved.