Uses of Interface
io.reacted.patterns.Try.TryConsumer
Packages that use Try.TryConsumer
-
Uses of Try.TryConsumer in io.reacted.patterns
Methods in io.reacted.patterns with parameters of type Try.TryConsumerModifier and TypeMethodDescriptionTry.ifError(Try.TryConsumer<? super Throwable> consumer) If Try is a failure, the provided consumer will be applied to the generated Throwable.Try.ifSuccess(Try.TryConsumer<? super T> consumer) If the Try is a success, the provided consumer is applied to the result.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.