Uses of Interface
io.reacted.patterns.UnChecked.CheckedSupplier
-
Uses of UnChecked.CheckedSupplier in io.reacted.patterns
Subinterfaces of UnChecked.CheckedSupplier in io.reacted.patterns Modifier and Type Interface Description static interfaceTry.TryResourceSupplier<T>static interfaceTry.TryValueSupplier<T>Methods in io.reacted.patterns with parameters of type UnChecked.CheckedSupplier Modifier and Type Method Description <X extends Throwable>
Try<T>Try. recover(Class<X> exception, UnChecked.CheckedSupplier<Try<? extends T>> successProvider)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 handlingstatic <T> Supplier<T>UnChecked. supplier(UnChecked.CheckedSupplier<T> checkedSupplier)