aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
diff options
context:
space:
mode:
authorpascalschumacher <pascalschumacher@gmx.net>2016-08-21 15:50:31 +0200
committerpascalschumacher <pascalschumacher@gmx.net>2016-08-21 15:50:31 +0200
commita06c99b9c094d66f0d33bd69e15fe01ba52a8b05 (patch)
tree3a4ed88ed424153b6946289f884f088bb2ef1f3f /src/main/java/org/apache/commons/lang3/RandomStringUtils.java
parentec2fa6bd5695b36435cc66ca4cdd8183d077a0cf (diff)
downloadapache-commons-lang-a06c99b9c094d66f0d33bd69e15fe01ba52a8b05.tar.gz
LANG-1224: Extend RandomStringUtils with methods that generate strings between a min and max length
add missing since javadoc tags
Diffstat (limited to 'src/main/java/org/apache/commons/lang3/RandomStringUtils.java')
-rw-r--r--src/main/java/org/apache/commons/lang3/RandomStringUtils.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
index fdcf87f68..84b30fd64 100644
--- a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java
@@ -92,6 +92,7 @@ public class RandomStringUtils {
* @param minLengthInclusive the inclusive minimum length of the string to generate
* @param maxLengthExclusive the exclusive maximum length of the string to generate
* @return the random string
+ * @since 3.5
*/
public static String randomAscii(final int minLengthInclusive, final int maxLengthExclusive) {
return randomAscii(RandomUtils.nextInt(minLengthInclusive, maxLengthExclusive));
@@ -120,6 +121,7 @@ public class RandomStringUtils {
* @param minLengthInclusive the inclusive minimum length of the string to generate
* @param maxLengthExclusive the exclusive maximum length of the string to generate
* @return the random string
+ * @since 3.5
*/
public static String randomAlphabetic(final int minLengthInclusive, final int maxLengthExclusive) {
return randomAlphabetic(RandomUtils.nextInt(minLengthInclusive, maxLengthExclusive));
@@ -148,6 +150,7 @@ public class RandomStringUtils {
* @param minLengthInclusive the inclusive minimum length of the string to generate
* @param maxLengthExclusive the exclusive maximum length of the string to generate
* @return the random string
+ * @since 3.5
*/
public static String randomAlphanumeric(final int minLengthInclusive, final int maxLengthExclusive) {
return randomAlphanumeric(RandomUtils.nextInt(minLengthInclusive, maxLengthExclusive));
@@ -177,6 +180,7 @@ public class RandomStringUtils {
* @param minLengthInclusive the inclusive minimum length of the string to generate
* @param maxLengthExclusive the exclusive maximum length of the string to generate
* @return the random string
+ * @since 3.5
*/
public static String randomGraph(final int minLengthInclusive, final int maxLengthExclusive) {
return randomGraph(RandomUtils.nextInt(minLengthInclusive, maxLengthExclusive));
@@ -205,6 +209,7 @@ public class RandomStringUtils {
* @param minLengthInclusive the inclusive minimum length of the string to generate
* @param maxLengthExclusive the exclusive maximum length of the string to generate
* @return the random string
+ * @since 3.5
*/
public static String randomNumeric(final int minLengthInclusive, final int maxLengthExclusive) {
return randomNumeric(RandomUtils.nextInt(minLengthInclusive, maxLengthExclusive));
@@ -234,6 +239,7 @@ public class RandomStringUtils {
* @param minLengthInclusive the inclusive minimum length of the string to generate
* @param maxLengthExclusive the exclusive maximum length of the string to generate
* @return the random string
+ * @since 3.5
*/
public static String randomPrint(final int minLengthInclusive, final int maxLengthExclusive) {
return randomPrint(RandomUtils.nextInt(minLengthInclusive, maxLengthExclusive));