Skip to content

Commit

Permalink
#9 Fix some JavaDocs as min & max boundaries could be equal for some …
Browse files Browse the repository at this point in the history
…methods
  • Loading branch information
ctapobep committed Nov 1, 2017
1 parent f5d242f commit 523d000
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datagen/src/main/java/io/qala/datagen/RandomShortApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public class RandomShortApi {
private RandomShortApi() {}

/**
* @param max inclusive, must be greater than 0
* @param max inclusive, must be greater than or equal to 0
* @return integer between 0 (inclusive) to {@code max}
*/
public static int integer(int max) {
return upTo(max).integer();
}
/**
* @param min inclusive, must be less than {@code max}
* @param max inclusive, must be greater than {@code min}
* @param min inclusive, must be less than or equal to {@code max}
* @param max inclusive, must be greater than or equal to {@code min}
* @return integer from {@code min} to {@code max}
*/
public static int integer(int min, int max) {
Expand Down

0 comments on commit 523d000

Please sign in to comment.