Uses of Interface
io.reacted.patterns.Try.TryConsumer
-
Uses of Try.TryConsumer in io.reacted.patterns
Methods in io.reacted.patterns with parameters of type Try.TryConsumer Modifier and Type Method Description Try<Void>Try. ifError(Try.TryConsumer<? super Throwable> consumer)If Try is a failure, the provided consumer will be applied to the generated Throwable.Try<Void>Try. ifSuccess(Try.TryConsumer<? super T> consumer)If the Try is a success, the provided consumer is applied to the result.Try<Void>Try. ifSuccessOrElse(Try.TryConsumer<? super T> successConsumer, Try.TryConsumer<? super Throwable> failureConsumer)A functional if then else: if the Try is successful the successConsumer is used, otherwise the throwable consumer.