Index
All Classes and Interfaces|All Packages|Serialized Form
A
- and(FunctionWithError<? super T, R>) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method used when a new computation must be done when the current one succeeds.
- applicative(Promise<T>) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
- Applicative<M,
A, - Interface in org.smallibs.controlS> - apply(I) - Method in interface org.smallibs.util.FunctionWithError
- apply(Function<HK<M, A, S>, T>) - Method in interface org.smallibs.type.HK
- apply(Functor<M, Function<? super A, ? extends B>, ?>) - Method in interface org.smallibs.control.Applicative
- async(Callable<T>) - Method in interface org.smallibs.concurrent.execution.Executor
-
Async method
- async(Callable<T>) - Method in class org.smallibs.concurrent.execution.impl.ExecutorImpl
- async(Executor.RunnableWithError) - Method in interface org.smallibs.concurrent.execution.Executor
-
Async method
- async(Executor.RunnableWithError) - Method in class org.smallibs.concurrent.execution.impl.ExecutorImpl
- await() - Method in interface org.smallibs.concurrent.promise.Promise
-
Method called when we want the result in a direct style.
- await(long, TimeUnit) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method called when we want the result in a direct style.
- await(Duration) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- await(Duration) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method called when we want the result in a direct style.
- await(Promise<T>, Duration) - Static method in enum class org.smallibs.concurrent.execution.ExecutorHelper
-
Await method
B
- biMap(FunctionWithError<? super Unit, ? extends R>, FunctionWithError<? super Throwable, ? extends R>) - Method in class org.smallibs.concurrent.promise.impl.PromisesSet
- biMap(FunctionWithError<? super T, ? extends R>, FunctionWithError<? super Throwable, ? extends R>) - Method in class org.smallibs.concurrent.promise.impl.RunnablePromise
- biMap(FunctionWithError<? super T, ? extends R>, FunctionWithError<? super Throwable, ? extends R>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- biMap(FunctionWithError<? super T, ? extends R>, FunctionWithError<? super Throwable, ? extends R>) - Method in class org.smallibs.concurrent.promise.impl.SolvedPromise
- biMap(FunctionWithError<? super T, ? extends R>, FunctionWithError<? super Throwable, ? extends R>) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method used to map a function on success and another one on error.
C
- cancel(boolean) - Method in class org.smallibs.concurrent.promise.impl.SolvableFuture
- completableFuture(Promise<T>) - Static method in enum class org.smallibs.concurrent.utils.CompletableFutureHelper
- CompletableFutureHelper - Enum Class in org.smallibs.concurrent.utils
- compose(Function<B, C>, Function<A, B>) - Static method in enum class org.smallibs.util.FunctionsHelper
- create(ExecutorService) - Static method in enum class org.smallibs.concurrent.execution.ExecutorHelper
-
Factory
- createFuture(Consumer<Try<T>>) - Method in class org.smallibs.concurrent.promise.impl.RunnablePromise
- createFuture(Consumer<Try<T>>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
E
- equals(Object) - Method in record class org.smallibs.data.Maybe.None
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.smallibs.data.Maybe.Some
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.smallibs.data.Try.Failure
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class org.smallibs.data.Try.Success
-
Indicates whether some other object is "equal to" this one.
- Executor - Interface in org.smallibs.concurrent.execution
- Executor.RunnableWithError - Interface in org.smallibs.concurrent.execution
- ExecutorHelper - Enum Class in org.smallibs.concurrent.execution
-
Asynchronous execution builder
- ExecutorImpl - Class in org.smallibs.concurrent.execution.impl
-
Asynchronous execution media
- ExecutorImpl(ExecutorService) - Constructor for class org.smallibs.concurrent.execution.impl.ExecutorImpl
-
Constructor
- exists(Promise...) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
F
- failure(Throwable) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
- failure(Throwable) - Static method in interface org.smallibs.data.Try
- Failure(Throwable) - Constructor for record class org.smallibs.data.Try.Failure
-
Creates an instance of a
Failurerecord class. - filter(Predicate<? super A>) - Method in interface org.smallibs.control.Filter
-
Method called when the current data must be filtered using a given predicate.
- filter(Predicate<? super Unit>) - Method in class org.smallibs.concurrent.promise.impl.PromisesSet
- filter(Predicate<? super T>) - Method in class org.smallibs.concurrent.promise.impl.RunnablePromise
- filter(Predicate<? super T>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- filter(Predicate<? super T>) - Method in class org.smallibs.concurrent.promise.impl.SolvedPromise
- filter(Predicate<? super T>) - Method in interface org.smallibs.data.Maybe
- filter(Predicate<? super T>) - Method in interface org.smallibs.data.Try
- Filter<M,
A, - Interface in org.smallibs.controlS> -
Filter interface
- FilterException - Exception Class in org.smallibs.exception
- FilterException() - Constructor for exception class org.smallibs.exception.FilterException
- flatmap(Function<? super A, HK<M, B, NS>>) - Method in interface org.smallibs.control.Monad
- flatmap(Function<? super Unit, Promise<R>>) - Method in class org.smallibs.concurrent.promise.impl.PromisesSet
- flatmap(Function<? super T, Promise<R>>) - Method in class org.smallibs.concurrent.promise.impl.RunnablePromise
- flatmap(Function<? super T, Promise<R>>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- flatmap(Function<? super T, Promise<R>>) - Method in class org.smallibs.concurrent.promise.impl.SolvedPromise
- flatmap(Function<? super T, Promise<R>>) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method used to flatmap a function.
- flatmap(Function<? super T, Maybe<B>>) - Method in interface org.smallibs.data.Maybe
- flatmap(Function<? super T, Maybe<B>>) - Method in record class org.smallibs.data.Maybe.None
- flatmap(Function<? super T, Maybe<B>>) - Method in record class org.smallibs.data.Maybe.Some
- flatmap(Function<? super T, Try<B>>) - Method in record class org.smallibs.data.Try.Failure
- flatmap(Function<? super T, Try<B>>) - Method in interface org.smallibs.data.Try
- flatmap(Function<? super T, Try<B>>) - Method in record class org.smallibs.data.Try.Success
- fold(Function<? super T, B>, Function<? super Throwable, B>) - Method in interface org.smallibs.data.Try
- fold(Function<? super T, B>, Supplier<B>) - Method in interface org.smallibs.data.Maybe
- forall(Promise...) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
- fromFunction(Function<T, R>) - Static method in enum class org.smallibs.util.FunctionsHelper
- FunctionsHelper - Enum Class in org.smallibs.util
- FunctionWithError<I,
O> - Interface in org.smallibs.util - functor(Promise<T>) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
- Functor<M,
A, - Interface in org.smallibs.controlS>
G
- get() - Method in class org.smallibs.concurrent.promise.impl.SolvableFuture
- get() - Method in interface org.smallibs.util.SupplierWithError
- get(long, TimeUnit) - Method in class org.smallibs.concurrent.promise.impl.SolvableFuture
- getFuture() - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- getFuture() - Method in interface org.smallibs.concurrent.promise.Promise
-
Deprecated.
H
- handle(SupplierWithError<O>) - Static method in interface org.smallibs.data.Try
- hashCode() - Method in record class org.smallibs.data.Maybe.None
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.smallibs.data.Maybe.Some
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.smallibs.data.Try.Failure
-
Returns a hash code value for this object.
- hashCode() - Method in record class org.smallibs.data.Try.Success
-
Returns a hash code value for this object.
- hasSome() - Method in interface org.smallibs.data.Maybe
- hasSome() - Method in record class org.smallibs.data.Maybe.None
- hasSome() - Method in record class org.smallibs.data.Maybe.Some
- HK<M,
A, - Interface in org.smallibs.typeS>
I
- id() - Static method in enum class org.smallibs.util.FunctionsHelper
- isCancelled() - Method in class org.smallibs.concurrent.promise.impl.SolvableFuture
- isDone() - Method in class org.smallibs.concurrent.promise.impl.SolvableFuture
- isSuccess() - Method in interface org.smallibs.data.Try
J
- join(Promise...) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
M
- map(Function<? super A, ? extends B>) - Method in interface org.smallibs.control.Functor
- map(Function<? super T, ? extends B>) - Method in interface org.smallibs.data.Maybe
- map(Function<? super T, ? extends B>) - Method in interface org.smallibs.data.Try
- map(FunctionWithError<? super Unit, ? extends R>) - Method in class org.smallibs.concurrent.promise.impl.PromisesSet
- map(FunctionWithError<? super T, ? extends R>) - Method in class org.smallibs.concurrent.promise.impl.RunnablePromise
- map(FunctionWithError<? super T, ? extends R>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- map(FunctionWithError<? super T, ? extends R>) - Method in class org.smallibs.concurrent.promise.impl.SolvedPromise
- map(FunctionWithError<? super T, ? extends R>) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method used to map a function.
- MAX_AWAIT_DURATION - Static variable in interface org.smallibs.concurrent.promise.Promise
-
The maximum default await duration is 3 minutes and 14 seconds
- Maybe<T> - Interface in org.smallibs.data
- Maybe.None<T> - Record Class in org.smallibs.data
-
None implementation
- Maybe.Some<T> - Record Class in org.smallibs.data
-
Some implementation
- MaybeHelper - Enum Class in org.smallibs.data
- monad(Promise<T>) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
- monad(Maybe<T>) - Static method in enum class org.smallibs.data.MaybeHelper
- monad(Try<T>) - Static method in enum class org.smallibs.data.TryHelper
- Monad<M,
A, - Interface in org.smallibs.controlS>
N
- NO_STOP - Enum constant in enum class org.smallibs.concurrent.promise.impl.PromisesSet.Strategy
- none() - Static method in interface org.smallibs.data.Maybe
- None() - Constructor for record class org.smallibs.data.Maybe.None
-
Creates an instance of a
Nonerecord class. - NoValueException - Exception Class in org.smallibs.exception
- NoValueException() - Constructor for exception class org.smallibs.exception.NoValueException
O
- onComplete(Consumer<Try<T>>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- onComplete(Consumer<Try<T>>) - Method in interface org.smallibs.concurrent.promise.Promise
-
Callback called when the computation terminates
- onFailure(Consumer<? super Throwable>) - Method in record class org.smallibs.data.Try.Failure
- onFailure(Consumer<? super Throwable>) - Method in interface org.smallibs.data.Try
- onFailure(Consumer<? super Throwable>) - Method in record class org.smallibs.data.Try.Success
- onFailure(Consumer<Throwable>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- onFailure(Consumer<Throwable>) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method called when the computation fails
- onNone(Runnable) - Method in record class org.smallibs.data.Maybe.None
- onNone(Runnable) - Method in interface org.smallibs.data.Maybe
- onNone(Runnable) - Method in record class org.smallibs.data.Maybe.Some
- onSome(Consumer<T>) - Method in record class org.smallibs.data.Maybe.None
- onSome(Consumer<T>) - Method in interface org.smallibs.data.Maybe
- onSome(Consumer<T>) - Method in record class org.smallibs.data.Maybe.Some
- onSuccess(Consumer<? super T>) - Method in record class org.smallibs.data.Try.Failure
- onSuccess(Consumer<? super T>) - Method in interface org.smallibs.data.Try
- onSuccess(Consumer<? super T>) - Method in record class org.smallibs.data.Try.Success
- onSuccess(Consumer<T>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- onSuccess(Consumer<T>) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method called when the computation succeeds
- orElse(Supplier<T>) - Method in record class org.smallibs.data.Maybe.None
- orElse(Supplier<T>) - Method in interface org.smallibs.data.Maybe
- orElse(Supplier<T>) - Method in record class org.smallibs.data.Maybe.Some
- orElse(T) - Method in interface org.smallibs.data.Maybe
- orElseThrow() - Method in interface org.smallibs.data.Try
- orElseThrow(Function<? super Throwable, ? extends X>) - Method in record class org.smallibs.data.Try.Failure
- orElseThrow(Function<? super Throwable, ? extends X>) - Method in interface org.smallibs.data.Try
- orElseThrow(Function<? super Throwable, ? extends X>) - Method in record class org.smallibs.data.Try.Success
- orElseThrow(Supplier<? extends X>) - Method in interface org.smallibs.data.Try
- org.smallibs.concurrent.execution - package org.smallibs.concurrent.execution
- org.smallibs.concurrent.execution.impl - package org.smallibs.concurrent.execution.impl
- org.smallibs.concurrent.promise - package org.smallibs.concurrent.promise
- org.smallibs.concurrent.promise.impl - package org.smallibs.concurrent.promise.impl
- org.smallibs.concurrent.utils - package org.smallibs.concurrent.utils
- org.smallibs.control - package org.smallibs.control
- org.smallibs.data - package org.smallibs.data
- org.smallibs.exception - package org.smallibs.exception
- org.smallibs.type - package org.smallibs.type
- org.smallibs.util - package org.smallibs.util
P
- promise(CompletableFuture<T>) - Static method in enum class org.smallibs.concurrent.utils.CompletableFutureHelper
- Promise<T> - Interface in org.smallibs.concurrent.promise
-
A promise is a component denoting an asynchronous computation.
- PromiseHelper - Enum Class in org.smallibs.concurrent.promise
- PromisesSet - Class in org.smallibs.concurrent.promise.impl
- PromisesSet(PromisesSet.Strategy, Promise...) - Constructor for class org.smallibs.concurrent.promise.impl.PromisesSet
- PromisesSet.Strategy - Enum Class in org.smallibs.concurrent.promise.impl
- pure(T) - Static method in interface org.smallibs.concurrent.promise.Promise
-
Constructor
- pure(T) - Static method in interface org.smallibs.data.Maybe
- pure(T) - Static method in interface org.smallibs.data.Try
R
- recoverWith(Function<? super Throwable, T>) - Method in record class org.smallibs.data.Try.Failure
- recoverWith(Function<? super Throwable, T>) - Method in interface org.smallibs.data.Try
- recoverWith(Function<? super Throwable, T>) - Method in record class org.smallibs.data.Try.Success
- recoverWith(T) - Method in interface org.smallibs.data.Try
- run() - Method in interface org.smallibs.concurrent.execution.Executor.RunnableWithError
- run() - Method in class org.smallibs.concurrent.promise.impl.RunnablePromise
- RunnablePromise<T> - Class in org.smallibs.concurrent.promise.impl
- RunnablePromise(Callable<T>) - Constructor for class org.smallibs.concurrent.promise.impl.RunnablePromise
S
- self() - Method in class org.smallibs.concurrent.promise.impl.PromisesSet
- self() - Method in class org.smallibs.concurrent.promise.impl.RunnablePromise
- self() - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- self() - Method in class org.smallibs.concurrent.promise.impl.SolvedPromise
- self() - Method in interface org.smallibs.data.Maybe
- self() - Method in interface org.smallibs.data.Try
- self() - Method in interface org.smallibs.type.HK
- sequence(List<Promise<T>>) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
- SolvableFuture<T> - Class in org.smallibs.concurrent.promise.impl
- SolvableFuture(Consumer<Try<T>>) - Constructor for class org.smallibs.concurrent.promise.impl.SolvableFuture
- SolvablePromise<T> - Class in org.smallibs.concurrent.promise.impl
- SolvablePromise() - Constructor for class org.smallibs.concurrent.promise.impl.SolvablePromise
- solve(Try<T>) - Method in class org.smallibs.concurrent.promise.impl.SolvableFuture
- solve(Try<T>) - Method in class org.smallibs.concurrent.promise.impl.SolvablePromise
- SolvedPromise<T> - Class in org.smallibs.concurrent.promise.impl
- SolvedPromise(Try<T>) - Constructor for class org.smallibs.concurrent.promise.impl.SolvedPromise
- some(T) - Static method in interface org.smallibs.data.Maybe
- Some(T) - Constructor for record class org.smallibs.data.Maybe.Some
-
Creates an instance of a
Somerecord class. - STOP_ON_ERROR - Enum constant in enum class org.smallibs.concurrent.promise.impl.PromisesSet.Strategy
- STOP_ON_SUCCESS - Enum constant in enum class org.smallibs.concurrent.promise.impl.PromisesSet.Strategy
- success(T) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
- success(T) - Static method in interface org.smallibs.data.Try
- Success(T) - Constructor for record class org.smallibs.data.Try.Success
-
Creates an instance of a
Successrecord class. - SupplierWithError<O> - Interface in org.smallibs.util
T
- then(Function<? super T, Promise<R>>) - Method in interface org.smallibs.concurrent.promise.Promise
-
Method used when a new asynchronous computation must be done when the current one succeeds.
- toFunction(FunctionWithError<T, R>) - Static method in enum class org.smallibs.util.FunctionsHelper
- toMaybe(Try<T>) - Static method in enum class org.smallibs.data.TryHelper
- toPromise() - Method in interface org.smallibs.data.Try
- toString() - Method in record class org.smallibs.data.Maybe.None
-
Returns a string representation of this record class.
- toString() - Method in record class org.smallibs.data.Maybe.Some
-
Returns a string representation of this record class.
- toString() - Method in record class org.smallibs.data.Try.Failure
-
Returns a string representation of this record class.
- toString() - Method in record class org.smallibs.data.Try.Success
-
Returns a string representation of this record class.
- toTry(Maybe<T>) - Static method in enum class org.smallibs.data.MaybeHelper
- Try<T> - Interface in org.smallibs.data
- Try.Failure<T> - Record Class in org.smallibs.data
-
Failure implementation
- Try.Success<T> - Record Class in org.smallibs.data
-
Success implementation
- TryHelper - Enum Class in org.smallibs.data
U
- unit - Enum constant in enum class org.smallibs.data.Unit
- Unit - Enum Class in org.smallibs.data
V
- value() - Method in record class org.smallibs.data.Maybe.Some
-
Returns the value of the
valuerecord component. - value() - Method in record class org.smallibs.data.Try.Failure
-
Returns the value of the
valuerecord component. - value() - Method in record class org.smallibs.data.Try.Success
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class org.smallibs.concurrent.execution.ExecutorHelper
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.smallibs.concurrent.promise.impl.PromisesSet.Strategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.smallibs.concurrent.utils.CompletableFutureHelper
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.smallibs.data.MaybeHelper
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.smallibs.data.TryHelper
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.smallibs.data.Unit
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.smallibs.util.FunctionsHelper
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.smallibs.concurrent.execution.ExecutorHelper
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.smallibs.concurrent.promise.impl.PromisesSet.Strategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.smallibs.concurrent.promise.PromiseHelper
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.smallibs.concurrent.utils.CompletableFutureHelper
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.smallibs.data.MaybeHelper
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.smallibs.data.TryHelper
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.smallibs.data.Unit
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.smallibs.util.FunctionsHelper
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Serialized Form