[ 
https://issues.apache.org/jira/browse/LANG-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincent Ricard updated LANG-454:
--------------------------------

    Attachment: LANG-454-set.patch

Here is an improved version of my "iterator" patch. I replaced the iterator() 
method by getChars() that returns a set of chars (since a range contains a char 
only once). The set is read-only (the writing methods will throw a 
UnsupportedOperationException.

> Add getCharArray()  to CharRange
> --------------------------------
>
>                 Key: LANG-454
>                 URL: https://issues.apache.org/jira/browse/LANG-454
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.4
>            Reporter: Kenny MacLeod
>             Fix For: 3.0
>
>         Attachments: LANG-454-iterator.patch, LANG-454-set.patch, 
> LANG-454.patch
>
>
> org.apache.commons.lang.CharRange would be a lot more useful if it had a 
> means to obtain the characters in the range as a char array.
> i.e.
> new CharRange('a',''d').toCharArray() == new char[] { 'a', 'b', 'c', 'd' }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to