Skip to content

Commit

Permalink
yegor256#692 review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedran authored and Vedran committed May 4, 2018
1 parent 254b342 commit abf8ec8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/cactoos/scalar/And.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,20 @@
* works:</p>
*
* <pre>
* {@code
* new And(
* new ProcOf<>(input -> System.out.printf("\'%s\' ", input) ),
* new IterableOf<>("Mary", "John", "William", "Napkin")
* ).value(); // will print 'Mary' 'John' 'William' 'Napkin' to standard output
* // the result of this operation is always true
* }
* </pre>
*
* <p>This class could be also used for matching multiple boolean
* expressions:</p>
*
* <pre>
* {@code
* new And(
* new True(),
* new True(),
Expand All @@ -61,6 +64,7 @@
* new False(),
* new True()
* ).value(); // the result is false
* }
* </pre>
*
* <p>This class implements {@link Scalar}, which throws a checked
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/org/cactoos/scalar/Or.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,20 @@
* works:</p>
*
* <pre>
* {@code
* new Or(
* new ProcOf<>(input -> System.out.printf("\'%s\' ", input) ),
* new IterableOf<>("Mary", "John", "William", "Napkin")
* ).value(); // will print 'Mary' 'John' 'William' 'Napkin' to standard output
* // the result of this operation is always false
* }
* </pre>
*
* <p>This class could be also used for matching multiple boolean
* expressions:</p>
*
* <pre>
* {@code
* new Or(
* new False(),
* new True(),
Expand All @@ -62,6 +65,7 @@
* new False(),
* new False()
* ).value(); // the result is false
* }
* </pre>
*
* <p>There is no thread-safety guarantee.
Expand Down

0 comments on commit abf8ec8

Please sign in to comment.