You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2021/10/20 12:38:00 UTC

[jira] [Created] (GROOVY-10321) @ToString could provide annotation attributes to control further the format of the created toString

Paul King created GROOVY-10321:
----------------------------------

             Summary: @ToString could provide annotation attributes to control further the format of the created toString
                 Key: GROOVY-10321
                 URL: https://issues.apache.org/jira/browse/GROOVY-10321
             Project: Groovy
          Issue Type: Improvement
            Reporter: Paul King


Possible attributes:
* leftDelimiter - default "("
* rightDelimiter - default ")"
* nameValueSeparator when {{includeNames}} is active - default ":"
* fieldSeparator - default ", "

Record-like toString values could be obtained by setting:
{code}
@ToString(leftDelimiter="[", rightDelimiter="]", nameValueSeparator="=", includePackage=false)
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)