You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set<T> sampleMultiple has an incorrect comment "@return a random element from the collection" because it doesn't return an element but a set of elements
List<T> sampleMultiple mentions that "elements don't repeat" but it returns a List that could have duplicates. Perhaps, this is addressed to Set<T> sampleMultiple?
The text was updated successfully, but these errors were encountered:
List sampleMultiple mentions that "elements don't repeat" but it returns a List that could have duplicates.
Are you saying that the result can have duplicates because the input may have duplicates? We can fix JavaDocs in that case to be clearer. The idea of the method is that it doesn't return same element twice (as opposed to sampling with replacement).
datagen/datagen/src/main/java/io/qala/datagen/RandomShortApi.java
Lines 292 to 310 in 523d000
I think that there 2 errors:
Set<T> sampleMultiple
has an incorrect comment "@return a random element from the collection" because it doesn't return an element but a set of elementsList<T> sampleMultiple
mentions that "elements don't repeat" but it returns a List that could have duplicates. Perhaps, this is addressed toSet<T> sampleMultiple
?The text was updated successfully, but these errors were encountered: