diff options
author | pacien | 2019-03-29 18:09:01 +0100 |
---|---|---|
committer | pacien | 2019-03-29 18:09:01 +0100 |
commit | 815755b9594d1577d282dc47120e68fe0aa8c4f1 (patch) | |
tree | 419d42aef03211b719b66aeb0b1585129424a2cc /src/main/java/org/pacien/lemonad/attempt | |
parent | 39a3b9fd63f19ccc7b69860a7a654763b0920dbd (diff) | |
download | java-lemonad-815755b9594d1577d282dc47120e68fe0aa8c4f1.tar.gz |
rename ambiguous method
Diffstat (limited to 'src/main/java/org/pacien/lemonad/attempt')
-rw-r--r-- | src/main/java/org/pacien/lemonad/attempt/Attempt.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/pacien/lemonad/attempt/Attempt.java b/src/main/java/org/pacien/lemonad/attempt/Attempt.java index fc437ad..e36ac4b 100644 --- a/src/main/java/org/pacien/lemonad/attempt/Attempt.java +++ b/src/main/java/org/pacien/lemonad/attempt/Attempt.java | |||
@@ -84,7 +84,7 @@ public interface Attempt<R, E> { | |||
84 | * @param mapper a function producing an {@link Attempt}, called with the current error if this {@link Attempt} is a failure. | 84 | * @param mapper a function producing an {@link Attempt}, called with the current error if this {@link Attempt} is a failure. |
85 | * @return this {@link Attempt} if it is a success, or the alternative {@link Attempt} retrieved from the supplier otherwise. | 85 | * @return this {@link Attempt} if it is a success, or the alternative {@link Attempt} retrieved from the supplier otherwise. |
86 | */ | 86 | */ |
87 | default <EE> Attempt<R, EE> mapFailure(@NonNull Function<? super E, ? extends Attempt<? extends R, ? extends EE>> mapper) { | 87 | default <EE> Attempt<R, EE> mapError(@NonNull Function<? super E, ? extends Attempt<? extends R, ? extends EE>> mapper) { |
88 | //noinspection unchecked | 88 | //noinspection unchecked |
89 | return (Attempt<R, EE>) (isFailure() ? mapper.apply(getError()) : this); | 89 | return (Attempt<R, EE>) (isFailure() ? mapper.apply(getError()) : this); |
90 | } | 90 | } |