Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-454

Add getCharArray() to CharRange

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 2.5
    • lang.*
    • None

    Description

      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' }

      Attachments

        1. LANG-454.patch
          4 kB
          Vincent Ricard
        2. LANG-454-iterator.patch
          7 kB
          Vincent Ricard
        3. LANG-454-set.patch
          10 kB
          Vincent Ricard

        Issue Links

          Activity

            People

              Unassigned Unassigned
              skaffman Kenny MacLeod
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: