{"action":"created","issue":{"url":"https://api.github.com/repos/twoqubed/bob/issues/13","labels_url":"https://api.github.com/repos/twoqubed/bob/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/twoqubed/bob/issues/13/comments","events_url":"https://api.github.com/repos/twoqubed/bob/issues/13/events","html_url":"https://github.com/twoqubed/bob/pull/13","id":59235335,"number":13,"title":"Added a from method to the generated builder that creates a new builder from an existing object.","user":{"login":"cwperry","id":823154,"avatar_url":"https://avatars.githubusercontent.com/u/823154?v=3","gravatar_id":"","url":"https://api.github.com/users/cwperry","html_url":"https://github.com/cwperry","followers_url":"https://api.github.com/users/cwperry/followers","following_url":"https://api.github.com/users/cwperry/following{/other_user}","gists_url":"https://api.github.com/users/cwperry/gists{/gist_id}","starred_url":"https://api.github.com/users/cwperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwperry/subscriptions","organizations_url":"https://api.github.com/users/cwperry/orgs","repos_url":"https://api.github.com/users/cwperry/repos","events_url":"https://api.github.com/users/cwperry/events{/privacy}","received_events_url":"https://api.github.com/users/cwperry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-27T13:22:04Z","updated_at":"2015-02-28T04:48:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/twoqubed/bob/pulls/13","html_url":"https://github.com/twoqubed/bob/pull/13","diff_url":"https://github.com/twoqubed/bob/pull/13.diff","patch_url":"https://github.com/twoqubed/bob/pull/13.patch"},"body":"Allows you to copy an object and modify the new builder before generating the new object.\r\n\r\nFor example, suppose I wanted to copy an object but get rid of its Id:\r\n```\r\nFoo foo = FooBuilder.builder()\r\n                       .withId(100)\r\n                       .withName(\"Name of foo\")\r\n                       .build();\r\n\r\nFoo bar = FooBuilder.fromFoo(foo)\r\n                       .withId(null)\r\n                       .build();\r\n```\r\n\r\n`bar.getName()` would equal \"Name of Foo\""},"comment":{"url":"https://api.github.com/repos/twoqubed/bob/issues/comments/76510476","html_url":"https://github.com/twoqubed/bob/pull/13#issuecomment-76510476","issue_url":"https://api.github.com/repos/twoqubed/bob/issues/13","id":76510476,"user":{"login":"tstout","id":44900,"avatar_url":"https://avatars.githubusercontent.com/u/44900?v=3","gravatar_id":"","url":"https://api.github.com/users/tstout","html_url":"https://github.com/tstout","followers_url":"https://api.github.com/users/tstout/followers","following_url":"https://api.github.com/users/tstout/following{/other_user}","gists_url":"https://api.github.com/users/tstout/gists{/gist_id}","starred_url":"https://api.github.com/users/tstout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tstout/subscriptions","organizations_url":"https://api.github.com/users/tstout/orgs","repos_url":"https://api.github.com/users/tstout/repos","events_url":"https://api.github.com/users/tstout/events{/privacy}","received_events_url":"https://api.github.com/users/tstout/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T04:48:29Z","updated_at":"2015-02-28T04:48:29Z","body":"I can relate to what Chris needs here, but I'm not sure it belongs in this library. This new builder method assumes that @Built classes have matching getters for all constructor args. That has not universally been the case in my usage of Bob. I'd like to see the exact context in which this addition is needed."}}