Skip to content

Commit

Permalink
Version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
2bllw8 committed Oct 15, 2021
1 parent 92b26cf commit 7edba44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ While `Either` is right–biased, it is possible to operate on the left values b
The latest release is available on [Maven Central](https://search.maven.org/artifact/io.github.2bllw8/either/2.0.0/jar).

```groovy
implementation 'io.github.2bllw8:either:2.0.0'
implementation 'io.github.2bllw8:either:2.1.0'
```

## Usage
Expand Down Expand Up @@ -49,13 +49,10 @@ public class Main {

for (int i = 0; i < results.size(); i++) {
final String arg = args[i];
final Either<MyError, MyObject> either = results.get(i);
if (either.isRight()) {
either.forEach(x -> System.out.println(arg + " -> " + x));
} else {
either.left().forEach(x -> System.err.println("Error occurred for '"
+ arg + "': " + x));
}
results.get(i).forEach(
left -> System.err.println(
"Error occurred for '" + arg + "': " + left),
right -> System.out.println(arg + " -> " + right));
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pmd {

archivesBaseName = rootProject.name
group = 'exe.bbllw8'
version = '2.0.0'
version = '2.1.0'

javadoc {
options.memberLevel = JavadocMemberLevel.PUBLIC
Expand Down

0 comments on commit 7edba44

Please sign in to comment.