From c63d805583a48e1c28bd8cf6f13858b75fc4c489 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 5 Apr 2019 03:17:08 +0200 Subject: style --- src/main/java/org/pacien/lemonad/attempt/Attempt.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/org/pacien/lemonad/attempt/Attempt.java b/src/main/java/org/pacien/lemonad/attempt/Attempt.java index 9f5befa..dcbb2d3 100644 --- a/src/main/java/org/pacien/lemonad/attempt/Attempt.java +++ b/src/main/java/org/pacien/lemonad/attempt/Attempt.java @@ -55,7 +55,7 @@ public interface Attempt { /** * @param resultConsumer a {@link Consumer} of result called if the {@link Attempt} is a success. - * @return the current {@link Attempt} + * @return the current {@link Attempt}. */ default Attempt ifSuccess(@NonNull Consumer resultConsumer) { if (isSuccess()) resultConsumer.accept(getResult()); @@ -64,7 +64,7 @@ public interface Attempt { /** * @param errorConsumer a {@link Consumer} of error called if the {@link Attempt} is a failure. - * @return the current {@link Attempt} + * @return the current {@link Attempt}. */ default Attempt ifFailure(@NonNull Consumer errorConsumer) { if (isFailure()) errorConsumer.accept(getError()); @@ -102,7 +102,7 @@ public interface Attempt { /** * @param mapper a function transforming an {@link Attempt}. - * @return the transformed {@link Attempt} + * @return the transformed {@link Attempt}. */ default Attempt flatMap(@NonNull Function, ? extends Attempt> mapper) { //noinspection unchecked -- cgit v1.2.3