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