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