T
- Return type@FunctionalInterface public interface Trampoline<T> extends java.util.function.Supplier<T>, Convertable<T>
Convertable.SupplierToConvertable<T>
Modifier and Type | Method and Description |
---|---|
default Trampoline<T> |
bounce() |
default boolean |
complete() |
static <T> Trampoline<T> |
done(T result)
Created a completed Trampoline
|
T |
get() |
default java.util.Iterator<T> |
iterator() |
static <T> Trampoline<T> |
more(Trampoline<Trampoline<T>> trampoline)
Create a Trampoline that has more work to do
|
default T |
result() |
fromSupplier, orElse, orElseGet, orElseThrow, toAtomicReference, toCompletableFuture, toCompletableFutureAsync, toCompletableFutureAsync, toFutureW, toList, toOptional, toOptionalAtomicReference, toStream, visit
default Trampoline<T> bounce()
default T result()
T get()
get
in interface Convertable<T>
get
in interface java.util.function.Supplier<T>
default java.util.Iterator<T> iterator()
iterator
in interface Convertable<T>
iterator
in interface java.lang.Iterable<T>
default boolean complete()
static <T> Trampoline<T> done(T result)
result
- Completed resultstatic <T> Trampoline<T> more(Trampoline<Trampoline<T>> trampoline)
trampoline
- Next stage in Trampoline