Modifier and Type | Method | Description |
---|---|---|
default Trampoline<T> |
bounce() |
|
default boolean |
complete() |
|
static <T> Trampoline<T> |
done(T result) |
|
default <R> Trampoline<R> |
flatMap(Function<? super T,? extends Trampoline<R>> fn) |
map this trampoline which returns a T, into another one that returns a R.
|
T |
get() |
Gets a result
|
default <R> Trampoline<R> |
map(Function<? super T,? extends R> fn) |
maps this trampoline which returns a T, into another one that returns a R.
|
static <T> Trampoline<T> |
more(Trampoline<Trampoline<T>> trampoline) |
default <R> Trampoline<R> map(Function<? super T,? extends R> fn)
R
- type of the resultfn
- the map function, from T to Rdefault <R> Trampoline<R> flatMap(Function<? super T,? extends Trampoline<R>> fn)
R
- type of the resultfn
- the map function, from T to Trampoline<R>
default Trampoline<T> bounce()
default boolean complete()
static <T> Trampoline<T> done(T result)
static <T> Trampoline<T> more(Trampoline<Trampoline<T>> trampoline)
Copyright © 2019. All rights reserved.