Index
A B C F G I M N O P R S T U V W
All Classes|All Packages
All Classes|All Packages
All Classes|All Packages
A
- accept(T) - Method in interface io.reacted.patterns.Try.TryConsumer
- accept(T) - Method in interface io.reacted.patterns.UnChecked.CheckedConsumer
- accept(T, U) - Method in interface io.reacted.patterns.UnChecked.CheckedBiConsumer
- apply(T) - Method in interface io.reacted.patterns.Try.TryMapper
- apply(T) - Method in interface io.reacted.patterns.UnChecked.CheckedFunction
- apply(T, U) - Method in interface io.reacted.patterns.UnChecked.CheckedBiFunction
- asyncLoop(Function<PayloadT, CompletionStage<PayloadT>>, PayloadT, long, Function<Throwable, CompletionStage<PayloadT>>, Executor) - Static method in class io.reacted.patterns.AsyncUtils
-
Asynchronously executes
operationiterationstimes. - asyncLoop(Function<PayloadT, CompletionStage<PayloadT>>, PayloadT, Function<Throwable, CompletionStage<PayloadT>>, long) - Static method in class io.reacted.patterns.AsyncUtils
-
Asynchronously executes
operationiterationstimes. - asyncLoop(Function<PayloadT, CompletionStage<PayloadT>>, PayloadT, Predicate<PayloadT>, Function<Throwable, CompletionStage<PayloadT>>, Executor) - Static method in class io.reacted.patterns.AsyncUtils
- asyncLoop(Function<PayloadT, CompletionStage<PayloadT>>, PayloadT, PayloadT, long) - Static method in class io.reacted.patterns.AsyncUtils
-
Asynchronously executes
operationiterationstimes. - asyncLoop(Function<PayloadT, CompletionStage<PayloadT>>, PayloadT, PayloadT, long, Executor) - Static method in class io.reacted.patterns.AsyncUtils
-
Asynchronously executes
operationiterationstimes. - AsyncUtils - Class in io.reacted.patterns
B
- biConsumer(UnChecked.CheckedBiConsumer<T, U>) - Static method in class io.reacted.patterns.UnChecked
- biFunction(UnChecked.CheckedBiFunction<T, U, R>) - Static method in class io.reacted.patterns.UnChecked
- binaryOperator(UnChecked.CheckedBinaryOperator<T>) - Static method in class io.reacted.patterns.UnChecked
C
- call() - Method in interface io.reacted.patterns.UnChecked.CheckedCallable
- consumer(UnChecked.CheckedConsumer<T>) - Static method in class io.reacted.patterns.UnChecked
F
- filter(UnChecked.CheckedPredicate<? super T>) - Method in class io.reacted.patterns.Try
-
If the Try is a failure, the current Try is returned.
- filter(UnChecked.CheckedPredicate<? super T>, Supplier<? extends Throwable>) - Method in class io.reacted.patterns.Try
-
If the Try is a failure, the current Try is returned.
- flatMap(Try.TryMapper<? super T, Try<? extends U>>) - Method in class io.reacted.patterns.Try
-
Like Stream.flatMap(), Try.flatMap flattens two nested Try.
- function(UnChecked.CheckedFunction<T, R>) - Static method in class io.reacted.patterns.UnChecked
G
- get() - Method in class io.reacted.patterns.Try.Failure
-
A failed Try does not hold any value
- get() - Method in class io.reacted.patterns.Try
-
This get will return the success value of a successful Try.
- get() - Method in class io.reacted.patterns.Try.Success
-
A successful Try holds a value that can be retrieved with this method.
- get() - Method in interface io.reacted.patterns.Try.TryResourceSupplier
- get() - Method in interface io.reacted.patterns.Try.TryValueSupplier
- get() - Method in interface io.reacted.patterns.UnChecked.CheckedSupplier
- getCause() - Method in class io.reacted.patterns.Try.Failure
- getCause() - Method in class io.reacted.patterns.Try
- getCause() - Method in class io.reacted.patterns.Try.Success
-
A successful Try does not have any cause
I
- identity() - Static method in interface io.reacted.patterns.UnChecked.CheckedUnaryOperator
- identity(Try<U>) - Static method in class io.reacted.patterns.Try
-
Identity Try function.
- identity(U) - Static method in class io.reacted.patterns.Try
-
Identity function.
- ifError(Try.TryConsumer<? super Throwable>) - Method in class io.reacted.patterns.Try
-
If Try is a failure, the provided consumer will be applied to the generated Throwable.
- ifSuccess(Try.TryConsumer<? super T>) - Method in class io.reacted.patterns.Try
-
If the Try is a success, the provided consumer is applied to the result.
- ifSuccessOrElse(Try.TryConsumer<? super T>, Try.TryConsumer<? super Throwable>) - Method in class io.reacted.patterns.Try
-
A functional if then else: if the Try is successful the successConsumer is used, otherwise the throwable consumer.
- io.reacted.patterns - package io.reacted.patterns
- isFailure() - Method in class io.reacted.patterns.Try
- isSuccess() - Method in class io.reacted.patterns.Try.Failure
- isSuccess() - Method in class io.reacted.patterns.Try
- isSuccess() - Method in class io.reacted.patterns.Try.Success
M
- map(Try.TryMapper<? super T, ? extends U>) - Method in class io.reacted.patterns.Try
-
If the Try is successful, another Try will be returned with the result of the specified mapper, otherwise the current Try is returned
- mapOrElse(Try.TryMapper<? super T, ? extends U>, Try.TryMapper<? super Throwable, ? extends U>) - Method in class io.reacted.patterns.Try
-
A functional if then else: if the Try is successful the ifSuccess mapper is used, otherwise the throwable mapper.
N
- NonNullByDefault - Annotation Type in io.reacted.patterns
- noOp(Object...) - Static method in class io.reacted.patterns.Try
-
Placeholder for a no operation
O
- of(Try.TryValueSupplier<? extends T>) - Static method in class io.reacted.patterns.Try
-
Creates a Try monad with the result of a computation
- ofCallable(UnChecked.CheckedCallable<? extends T>) - Static method in class io.reacted.patterns.Try
- ofFailure(Throwable) - Static method in class io.reacted.patterns.Try
-
Creates a failed Try carrying the specified failure exception
- ofRunnable(UnChecked.CheckedRunnable) - Static method in class io.reacted.patterns.Try
- ofSuccess(T) - Static method in class io.reacted.patterns.Try
-
Creates a successful Try carrying the specified valued
- orElse(T, Consumer<? super Throwable>) - Method in class io.reacted.patterns.Try
-
Gets the value contained in Try on success, otherwise returns the specified value and the exception that generated the failure is processed with the provided consumer
- orElse(U) - Method in class io.reacted.patterns.Try
-
Gets the value contained in Try on success, otherwise returns the specified value.
- orElseGet(Function<? super Throwable, ? extends T>) - Method in class io.reacted.patterns.Try
- orElseGet(Supplier<? extends T>) - Method in class io.reacted.patterns.Try
-
Gets the value contained in Try on success, otherwise returns the output of the provided supplier.
- orElseGet(Supplier<? extends T>, Consumer<? super Throwable>) - Method in class io.reacted.patterns.Try
- orElseRecover(Function<? super Throwable, ? extends T>) - Method in class io.reacted.patterns.Try
-
Gets the value contained in Try on success, otherwise maps the exception into a valid return value
- orElseSneakyThrow() - Method in class io.reacted.patterns.Try
-
Gets the Try value on success, otherwise sneaky throws the exception that caused the failure
- orElseThrow(Function<Throwable, X>) - Method in class io.reacted.patterns.Try
-
Gets the Try value on success, otherwise throws an exception generated by the provided throwable mapper
- orElseTry(Try.TryMapper<Throwable, Try<? extends T>>) - Method in class io.reacted.patterns.Try
-
Gets the current Try or if it is a failure maps the generated exception into an alternative Try using the specified mapper
- orElseTry(Try.TryValueSupplier<? extends T>) - Method in class io.reacted.patterns.Try
-
Gets the current Try or if it is a failure, the result of the provided TrySupplier
- orElseTry(Try.TryValueSupplier<? extends T>, UnChecked.CheckedConsumer<? super Throwable>) - Method in class io.reacted.patterns.Try
-
Gets the current Try or if it is a failure, the result of the provided TrySupplier and the specified consumer process the exception that has generated the failure
- orElseTry(Try<? extends T>) - Method in class io.reacted.patterns.Try
-
Gets the value contained in Try on success, otherwise returns the specified Try
P
- peek(Class<? extends ExceptionT>, Consumer<? super T>, Consumer<? super ExceptionT>) - Method in class io.reacted.patterns.Try
-
Check the status of the current Try and apply accordingly one of the provided consumers.
- peek(Consumer<? super T>, Consumer<? super Throwable>) - Method in class io.reacted.patterns.Try
-
Check the status of the current Try and apply accordingly one of the provided consumers.
- peekFailure(Class<ExceptionT>, Consumer<ExceptionT>) - Method in class io.reacted.patterns.Try
-
Check if the status of the current Try is a failure of the specified class and in that case apply the specified consumer to its failure cause.
- peekFailure(Consumer<? super Throwable>) - Method in class io.reacted.patterns.Try
-
Check if the current Try is a Failure and in that case apply the specified consumer to its failure cause.
- peekSuccess(Consumer<? super T>) - Method in class io.reacted.patterns.Try
-
Check the status of the current Try and if it is a success apply the specified consumer to its value.
- predicate(UnChecked.CheckedPredicate<T>) - Static method in class io.reacted.patterns.UnChecked
R
- recover(Class<X>, Try.TryMapper<? super Throwable, ? extends T>) - Method in class io.reacted.patterns.Try
-
Recover the status of a Try, if failed, mapping the generated exception to another org .reacted.patterns.Try Will be returned the original Try if it is successful, otherwise the try returned by the mapper Different recover calls can be chains for fine exception handling
- recover(Class<X>, Try.TryValueSupplier<? extends T>) - Method in class io.reacted.patterns.Try
-
Recover the status of a Try, if failed.
- recover(Class<X>, Try<? extends T>) - Method in class io.reacted.patterns.Try
-
Recover the status of a Try, if failed.
- recover(Class<X>, UnChecked.CheckedSupplier<Try<? extends T>>) - Method in class io.reacted.patterns.Try
-
Recover the status of a Try, if failed, a success Try is generated using the provided supplier Will be returned the original Try if it is successful, otherwise the try returned by the mapper Different recover calls can be chains for fine exception handling
- run() - Method in interface io.reacted.patterns.UnChecked.CheckedRunnable
S
- sneakyThrow(Throwable) - Static method in class io.reacted.patterns.UnChecked
- stream() - Method in class io.reacted.patterns.Try
-
Converts the Try into a java Stream.
- supplier(UnChecked.CheckedSupplier<T>) - Static method in class io.reacted.patterns.UnChecked
T
- test(T) - Method in interface io.reacted.patterns.UnChecked.CheckedPredicate
- toOptional() - Method in class io.reacted.patterns.Try
- Try<T> - Class in io.reacted.patterns
- Try.Failure<T> - Class in io.reacted.patterns
- Try.Success<T> - Class in io.reacted.patterns
- Try.TryConsumer<T> - Interface in io.reacted.patterns
- Try.TryMapper<T,R> - Interface in io.reacted.patterns
- Try.TryResourceSupplier<T> - Interface in io.reacted.patterns
- Try.TryValueSupplier<T> - Interface in io.reacted.patterns
U
- unaryOperator(UnChecked.CheckedUnaryOperator<T>) - Static method in class io.reacted.patterns.UnChecked
- UnChecked - Class in io.reacted.patterns
- UnChecked.CheckedBiConsumer<T,U> - Interface in io.reacted.patterns
- UnChecked.CheckedBiFunction<T,U,R> - Interface in io.reacted.patterns
- UnChecked.CheckedBinaryOperator<T> - Interface in io.reacted.patterns
- UnChecked.CheckedCallable<T> - Interface in io.reacted.patterns
- UnChecked.CheckedConsumer<T> - Interface in io.reacted.patterns
- UnChecked.CheckedFunction<T,U> - Interface in io.reacted.patterns
- UnChecked.CheckedPredicate<T> - Interface in io.reacted.patterns
- UnChecked.CheckedRunnable - Interface in io.reacted.patterns
- UnChecked.CheckedSupplier<T> - Interface in io.reacted.patterns
- UnChecked.CheckedUnaryOperator<T> - Interface in io.reacted.patterns
V
- valueOf(Throwable) - Static method in class io.reacted.patterns.Try.Failure
- valueOf(T) - Static method in class io.reacted.patterns.Try.Success
- VOID - Static variable in class io.reacted.patterns.Try
W
- withChainedResources(Try.TryResourceSupplier<? extends A>, Try.TryMapper<A, ? extends A1>, UnChecked.CheckedBiFunction<? super A, ? super A1, ? extends T>) - Static method in class io.reacted.patterns.Try
- withResources(Try.TryResourceSupplier<? extends A>, Try.TryMapper<? super A, ? extends T>) - Static method in class io.reacted.patterns.Try
-
Applies a consumer on a resource.
- withResources(Try.TryResourceSupplier<? extends A>, Try.TryResourceSupplier<? extends A1>, UnChecked.CheckedBiFunction<? super A, ? super A1, ? extends T>) - Static method in class io.reacted.patterns.Try
-
Applies a consumer on two resources.
All Classes|All Packages