[ 
https://issues.apache.org/jira/browse/TEXT-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16059851#comment-16059851
 ] 

Pascal Schumacher commented on TEXT-93:
---------------------------------------

I'm not opposed to adding a new method to make it easier.

I may be wrong, but I believe [~dmjones500] added 
RandomStringGenerator#filteredBy for this use cases like this. I agree that is 
a bit cumbersome to use (especially on java 7). (It's easier if you use the 
build-in CharacterPredicate of the CharacterPredicates class.)





> RandomStringGenerator accepts a list of valid characters
> --------------------------------------------------------
>
>                 Key: TEXT-93
>                 URL: https://issues.apache.org/jira/browse/TEXT-93
>             Project: Commons Text
>          Issue Type: Wish
>            Reporter: Wilson MacGyver
>
>  implement a "selectFrom" feature:
>   RandomStringGenerator gen = new RandomStringGenerator.Builder()
>     .selectFrom(charArray)
>     .build();
> so we can pass a list of valid characters



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to