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

@ToString could provide annotation attributes to control further the format of the created toString

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-beta-2
    • None
    • None

    Description

      Possible attributes:

      • leftDelimiter - default "("
      • rightDelimiter - default ")"
      • nameValueSeparator when includeNames is active - default ":"
      • fieldSeparator - default ", "

      Record-like toString values could be obtained by setting:

      @ToString(leftDelimiter="[", rightDelimiter="]", nameValueSeparator="=", includePackage=false)
      

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: