Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 5776 invoked from network); 7 Jul 2009 06:40:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jul 2009 06:40:28 -0000 Received: (qmail 31770 invoked by uid 500); 7 Jul 2009 06:40:38 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 31653 invoked by uid 500); 7 Jul 2009 06:40:37 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 31643 invoked by uid 99); 7 Jul 2009 06:40:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 06:40:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2009 06:40:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5BCA5234C004 for ; Mon, 6 Jul 2009 23:40:15 -0700 (PDT) Message-ID: <1548737520.1246948815361.JavaMail.jira@brutus> Date: Mon, 6 Jul 2009 23:40:15 -0700 (PDT) From: "Henri Yandell (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (LANG-425) Sequence(String)Utils In-Reply-To: <63951637.1208205784947.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LANG-425?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727943#action_12727943 ] Henri Yandell commented on LANG-425: ------------------------------------ Agreed on the dodginess of the CharSequence name. Builder strategy is because Java lacks pairs :) UnicodeSequence.iterator( {0x30, 0x39}, {0x41, 0x46} ) feels painful. > Sequence(String)Utils > --------------------- > > Key: LANG-425 > URL: https://issues.apache.org/jira/browse/LANG-425 > Project: Commons Lang > Issue Type: Wish > Affects Versions: 2.4 > Reporter: Robert Scholte > Priority: Trivial > Fix For: 3.0 > > > Don't you think it's kind of strange to have RandomUtils and RandomStringUtils, but not just the ordinairy SequenceUtils? > I've seen commons-id in the sandbox, but maybe some basics should become part of commons lang. > Most classes of within this package are stateless/static, or they have a state within a method (such as StrBuilder). SequenceUtils can only be static, if it has the startValue. > For example > {code} > SequenceUtils.nextInt(10) > SequenceUtils.nextString("MORE") > SequenceUtils.nextBoolean(true) //ok, this one is stupid but quite clear > SequenceUtils.nextString("C0DE", "0123456789ABCDEF") //next hexadecimal > {code} > any more ideas? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.