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 2022/02/03 22:33:00 UTC

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

     [ https://issues.apache.org/jira/browse/GROOVY-10321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-10321.
------------------------------

> @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
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 4.0.0-beta-2
>
>
> 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.20.1#820001)