Skip to content

Commit 77d2ece

Browse files
committed
add javadoc
1 parent 696977a commit 77d2ece

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/io/github/benas/unixstream/components/WordCount.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public class WordCount implements Stage<String, String> {
1515

1616
private Option option;
1717

18+
/**
19+
* Create a new {@link WordCount} instance with default option to {@link Option#W}.
20+
*/
1821
public WordCount() {
1922
this(Option.W);
2023
}
@@ -57,6 +60,9 @@ public Stream<String> apply(Stream<String> input) {
5760
}
5861
}
5962

63+
/**
64+
* Options for {@link WordCount}.
65+
*/
6066
public enum Option {
6167
/**
6268
* Mimics wc -w

0 commit comments

Comments
 (0)