Skip to content

Commit

Permalink
Specify iterator exhaustion on RandomSampling.feed(Iterator)
Browse files Browse the repository at this point in the history
  • Loading branch information
gstamatelat committed Jul 1, 2018
1 parent 8bd0245 commit 3335a0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/gr/james/sampling/RandomSampling.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ public interface RandomSampling<T> {
* feed(items.next());
* }
* </code></pre>
* <p>
* After this method returns, the {@code items} iterator is left exhausted.
*
* @param items the items to feed to the algorithm
* @return {@code true} if the sample was modified as a result of this operation
Expand Down

0 comments on commit 3335a0f

Please sign in to comment.