| Package | Description |
|---|---|
| org.smallibs.concurrent.promise | |
| org.smallibs.concurrent.promise.impl | |
| org.smallibs.control | |
| org.smallibs.data | |
| org.smallibs.type |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Promise<T>
A promise is a component denoting an asynchronous computation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PromisesSet |
class |
RunnablePromise<T> |
class |
SolvablePromise<T> |
class |
SolvedPromise<T> |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Applicative<M,A,Self extends HK<M,A,Self>> |
interface |
Filter<M,A,Self extends HK<M,A,Self>>
Filter interface
|
interface |
Functor<M,A,Self extends HK<M,A,Self>> |
interface |
Monad<M,A,Self extends HK<M,A,Self>> |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Applicative<M,A,Self extends HK<M,A,Self>> |
interface |
Free<F extends Functor<F,A,Free<F,A>>,A> |
interface |
Functor<M,A,Self extends HK<M,A,Self>> |
interface |
Monad<M,A,Self extends HK<M,A,Self>> |
| Modifier and Type | Method and Description |
|---|---|
<B,NSelf extends HK<M,B,NSelf>> |
Applicative.apply(Functor<M,java.util.function.Function<? super A,? extends B>,?> functor) |
<B,NSelf extends HK<M,B,NSelf>> |
Monad.flatmap(java.util.function.Function<? super A,HK<M,B,NSelf>> function) |
<B,NSelf extends HK<M,B,NSelf>> |
Functor.map(java.util.function.Function<? super A,? extends B> function) |
| Modifier and Type | Method and Description |
|---|---|
<B,NSelf extends HK<M,B,NSelf>> |
Applicative.apply(Functor<M,java.util.function.Function<? super A,? extends B>,?> functor) |
HK<M,A,Self> |
Filter.filter(java.util.function.Predicate<? super A> predicate)
Method called when the current data must be filtered using a given predicate.
|
<B,NSelf extends HK<M,B,NSelf>> |
Monad.flatmap(java.util.function.Function<? super A,HK<M,B,NSelf>> function) |
<B,NSelf extends HK<M,B,NSelf>> |
Functor.map(java.util.function.Function<? super A,? extends B> function) |
| Modifier and Type | Method and Description |
|---|---|
<B,NSelf extends HK<M,B,NSelf>> |
Monad.flatmap(java.util.function.Function<? super A,HK<M,B,NSelf>> function) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Maybe<T> |
interface |
Try<T> |
| Modifier and Type | Class and Description |
|---|---|
static class |
Maybe.None<T>
None implementation
|
static class |
Maybe.Some<T>
Some implementation
|
static class |
Try.Failure<T>
Failure implementation
|
static class |
Try.Success<T>
Success implementation
|
| Modifier and Type | Method and Description |
|---|---|
default <R> R |
Maybe.apply(java.util.function.Function<HK<Maybe,T,Maybe<T>>,R> f) |
default <R> R |
Try.apply(java.util.function.Function<HK<Try,T,Try<T>>,R> f) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
HK<M,A,Self extends HK<M,A,Self>> |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
HK.apply(java.util.function.Function<HK<M,A,Self>,T> f) |
Copyright © 2020. All rights reserved.