Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EF25A200B6E for ; Sun, 21 Aug 2016 15:50:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EDC3F160A87; Sun, 21 Aug 2016 13:50:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3EC2E160A81 for ; Sun, 21 Aug 2016 15:50:41 +0200 (CEST) Received: (qmail 86675 invoked by uid 500); 21 Aug 2016 13:50:40 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 86666 invoked by uid 99); 21 Aug 2016 13:50:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2016 13:50:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1E17CE01E2; Sun, 21 Aug 2016 13:50:40 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pascalschumacher@apache.org To: commits@commons.apache.org Message-Id: <358aa74548724d5fbb1318d32af4bb52@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [lang] LANG-1224: Extend RandomStringUtils with methods that generate strings between a min and max length Date: Sun, 21 Aug 2016 13:50:40 +0000 (UTC) archived-at: Sun, 21 Aug 2016 13:50:42 -0000 Repository: commons-lang Updated Branches: refs/heads/master ec2fa6bd5 -> a06c99b9c LANG-1224: Extend RandomStringUtils with methods that generate strings between a min and max length add missing since javadoc tags Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/a06c99b9 Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/a06c99b9 Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/a06c99b9 Branch: refs/heads/master Commit: a06c99b9c094d66f0d33bd69e15fe01ba52a8b05 Parents: ec2fa6b Author: pascalschumacher Authored: Sun Aug 21 15:50:31 2016 +0200 Committer: pascalschumacher Committed: Sun Aug 21 15:50:31 2016 +0200 ---------------------------------------------------------------------- src/main/java/org/apache/commons/lang3/RandomStringUtils.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-lang/blob/a06c99b9/src/main/java/org/apache/commons/lang3/RandomStringUtils.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/lang3/RandomStringUtils.java b/src/main/java/org/apache/commons/lang3/RandomStringUtils.java index fdcf87f..84b30fd 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));