You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dave Meikle (JIRA)" <ji...@apache.org> on 2008/05/19 12:55:55 UTC

[jira] Closed: (LANG-354) Implementation of a CloneBuilder Class

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

Dave Meikle closed LANG-354.
----------------------------

    Resolution: Invalid

This cannot be implemented due to limitations in what can be done.

> Implementation of a CloneBuilder Class
> --------------------------------------
>
>                 Key: LANG-354
>                 URL: https://issues.apache.org/jira/browse/LANG-354
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Dave Meikle
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: CloneBuilder.java, CloneBuilderTest.java
>
>
> As discussed on the Mailing List an implementation of a CloneBuilder class to simplify creating basic clone methods like the other builders in Lang. Example usage would be as follows:
>  public Object clone() {
>      return CloneBuilder.reflectionClone(this);
>  }
> or
>  public Object clone() {
>      return new CloneBuilder(this)
>          .append("field1")         // note the 'field by name' usage
>          .append("field2")         // rather than 'field by value'
>          ...
>          .append("fieldn")
>          .toClone();
>  }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.