diff options
author | pacien | 2019-04-05 05:13:32 +0200 |
---|---|---|
committer | pacien | 2019-04-05 05:13:32 +0200 |
commit | 80f7acccde921fb387a17d2a5712babf3001b974 (patch) | |
tree | 34dfc73f19747e43f8cd690e2ded138b6ae4adf4 | |
parent | 60a665926403e65ae6abf181916c439db52ce0e2 (diff) | |
download | java-lemonad-80f7acccde921fb387a17d2a5712babf3001b974.tar.gz |
update readme
-rw-r--r-- | readme.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -28,8 +28,8 @@ the use of which being problematic in performance-sensitive contexts. | |||
28 | import static org.pacien.lemonad.attempt.Attempt.*; | 28 | import static org.pacien.lemonad.attempt.Attempt.*; |
29 | 29 | ||
30 | (tree.hasLemon() ? success(tree.getLemon()) : failure("No lemon.")) | 30 | (tree.hasLemon() ? success(tree.getLemon()) : failure("No lemon.")) |
31 | .mapError(__ -> store.buyLemon()) | 31 | .recoverError(__ -> store.buyLemon()) |
32 | .mapResult(this::makeLemonade) | 32 | .transformResult(this::makeLemonade) |
33 | .ifSuccess(this::drink); | 33 | .ifSuccess(this::drink); |
34 | ``` | 34 | ``` |
35 | 35 | ||
@@ -70,7 +70,7 @@ repositories { | |||
70 | } | 70 | } |
71 | 71 | ||
72 | dependencies { | 72 | dependencies { |
73 | implementation 'org.pacien:lemonad:614bd19ad5' | 73 | implementation 'org.pacien:lemonad:60a6659264' |
74 | } | 74 | } |
75 | ``` | 75 | ``` |
76 | 76 | ||
@@ -88,7 +88,7 @@ dependencies { | |||
88 | <dependency> | 88 | <dependency> |
89 | <groupId>org.pacien</groupId> | 89 | <groupId>org.pacien</groupId> |
90 | <artifactId>lemonad</artifactId> | 90 | <artifactId>lemonad</artifactId> |
91 | <version>614bd19ad5</version> | 91 | <version>60a6659264</version> |
92 | </dependency> | 92 | </dependency> |
93 | </project> | 93 | </project> |
94 | ``` | 94 | ``` |