Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2862

Some DGM niceness for Character

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5.6, 1.6-beta-1
    • Fix Version/s: 1.5.7, 1.6-beta-2
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      The iterator method on String returns a list of strings (each of length 1). It would be useful to also have the ability to return an array of char. I suggest getChars for this. It would also be nice to have trivial mappings of some of the common Character static methods to be available on chars, e.g. Character.isLowerCase(c) could be made available via c.isLowerCase().

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              paulk Paul King
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: