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

provide File.size() and Matcher.size()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-6
    • groovy-jdk
    • None

    Description

      File.length() should be available as File.size()
      Matcher.getCount() -> size()

      -> size() should generally better be named getSize() to allow property calls
      obj.size
      --> rejected since this conflicts with Map, Expando, and other types that handle getProperty() specially.

      Attachments

        Activity

          People

            codevise Dierk König
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: