Uses of Interface
cloud.opencode.base.functional.monad.Trampoline
Packages that use Trampoline
Package
Description
Monad Types - Functional containers for computation
Monad 类型 - 计算的函数式容器
-
Uses of Trampoline in cloud.opencode.base.functional.monad
Classes in cloud.opencode.base.functional.monad that implement TrampolineModifier and TypeClassDescriptionstatic final recordCompleted Trampoline with a result.static final recordTrampoline.FlatMap<A,B> FlatMapped Trampoline for chaining computations.static final recordSuspended Trampoline with a continuation.Methods in cloud.opencode.base.functional.monad that return TrampolineModifier and TypeMethodDescriptionstatic <T> Trampoline<T> Lift a supplier into a Trampoline.static <T> Trampoline<T> Trampoline.done(T result) Create a completed Trampoline with a result.<U> Trampoline<U> Trampoline.Done.flatMap(Function<? super T, Trampoline<U>> f) <U> Trampoline<U> Trampoline.flatMap(Function<? super T, Trampoline<U>> f) Chain another Trampoline computation.<U> Trampoline<U> Trampoline.FlatMap.flatMap(Function<? super B, Trampoline<U>> g) <U> Trampoline<U> Trampoline.More.flatMap(Function<? super T, Trampoline<U>> f) static <T> Trampoline<T> Create a Trampoline for a recursive function.default <U> Trampoline<U> Transform the result when it becomes available.static <T> Trampoline<T> Trampoline.more(Supplier<Trampoline<T>> continuation) Create a suspended Trampoline with a continuation.default Trampoline<T> Execute a side effect when the result is available.Trampoline.FlatMap.previous()Returns the value of thepreviousrecord component.static <T> Trampoline<T> Create a Trampoline that repeats a computation n times.static <T> Trampoline<T> Trampoline.sequence(Trampoline<T>... trampolines) Sequence multiple Trampolines, returning the last result.static <T> Trampoline<T> Trampoline.suspend(Supplier<Trampoline<T>> continuation) Create a Trampoline that suspends computation.Methods in cloud.opencode.base.functional.monad that return types with arguments of type TrampolineModifier and TypeMethodDescriptionTrampoline.More.continuation()Returns the value of thecontinuationrecord component.Function<? super A, Trampoline<B>> Trampoline.FlatMap.f()Returns the value of thefrecord component.Methods in cloud.opencode.base.functional.monad with parameters of type TrampolineModifier and TypeMethodDescriptionstatic <T> Trampoline<T> Trampoline.sequence(Trampoline<T>... trampolines) Sequence multiple Trampolines, returning the last result.Method parameters in cloud.opencode.base.functional.monad with type arguments of type TrampolineModifier and TypeMethodDescription<U> Trampoline<U> Trampoline.Done.flatMap(Function<? super T, Trampoline<U>> f) <U> Trampoline<U> Trampoline.flatMap(Function<? super T, Trampoline<U>> f) Chain another Trampoline computation.<U> Trampoline<U> Trampoline.FlatMap.flatMap(Function<? super B, Trampoline<U>> g) <U> Trampoline<U> Trampoline.More.flatMap(Function<? super T, Trampoline<U>> f) static <T> Trampoline<T> Trampoline.more(Supplier<Trampoline<T>> continuation) Create a suspended Trampoline with a continuation.static <T> Trampoline<T> Trampoline.suspend(Supplier<Trampoline<T>> continuation) Create a Trampoline that suspends computation.Constructors in cloud.opencode.base.functional.monad with parameters of type TrampolineModifierConstructorDescriptionFlatMap(Trampoline<A> previous, Function<? super A, Trampoline<B>> f) Creates an instance of aFlatMaprecord class.Constructor parameters in cloud.opencode.base.functional.monad with type arguments of type TrampolineModifierConstructorDescriptionFlatMap(Trampoline<A> previous, Function<? super A, Trampoline<B>> f) Creates an instance of aFlatMaprecord class.More(Supplier<Trampoline<T>> continuation) Creates an instance of aMorerecord class.