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

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

I prefer selectFrom as method name (as suggested by [~wmacgyver]) and varargs 
as parameter type. That would make the api very convenient to use:

{code}
RandomStringGenerator gen = new RandomStringGenerator.Builder().selectFrom('a', 
'b', '1', '2').build();
{code}

> 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