Skip to content

Commit

Permalink
WeightedRandomSampling javadoc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gstamatelat committed Jun 27, 2018
1 parent 9c6def1 commit a4fbb1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/gr/james/sampling/WeightedRandomSampling.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
* restrictions on the values of weight. These restrictions must be mentioned in the documentation and an
* {@link IllegalWeightException} must be thrown to indicate such violations.
* <p>
* Classes that implement this interface must have a static method with signature
* Classes that implement this interface have a static method with signature
* <pre><code>
* public static &lt;E&gt; WeightedRandomSamplingCollector&lt;E&gt; weightedCollector(int sampleSize, Random random)
* </code></pre>
* that returns a {@link WeightedRandomSamplingCollector} to use with the Java 8 stream API.
* <p>
* Classes that implement this interface must have constant space complexity in respect to the stream size.
* Classes that implement this interface have constant space complexity in respect to the stream size.
*
* @param <T> the item type
* @author Giorgos Stamatelatos
Expand Down

0 comments on commit a4fbb1f

Please sign in to comment.