Uses of Interface
io.reacted.patterns.Try.TryValueSupplier
Packages that use Try.TryValueSupplier
-
Uses of Try.TryValueSupplier in io.reacted.patterns
Methods in io.reacted.patterns with parameters of type Try.TryValueSupplierModifier and TypeMethodDescriptionstatic <T> Try<T>Try.of(Try.TryValueSupplier<? extends T> supplier) Creates a Try monad with the result of a computationTry.orElseTry(Try.TryValueSupplier<? extends T> supplier) Gets the current Try or if it is a failure, the result of the provided TrySupplierTry.orElseTry(Try.TryValueSupplier<? extends T> supplier, UnChecked.CheckedConsumer<? super Throwable> exceptionConsumer) 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 failureTry.recover(Class<X> exception, Try.TryValueSupplier<? extends T> successValGenerator) Recover the status of a Try, if failed.