Re: Generate setters that return this

2022-09-06 Thread Neil C Smith
On Tue, 6 Sept 2022 at 18:20, Mitch Claborn wrote: > Yes, I suppose Builder is the more correct term. No, it isn't. It's a fluent API. A builder might use fluent setters, but they have uses elsewhere (if you do need mutability). Personally, I think this might be a good addition - the file you

RE: Generate setters that return this

2022-09-06 Thread Greenberg, Gary
Subject: Re: Generate setters that return this Yes, I suppose Builder is the more correct term. The question is the same: Is there a way in NetBeans to generate those? Mitch On 9/6/22 11:52, Greenberg, Gary wrote: > I think you are confusing setters with builders. > Setters do not return an

Re: Generate setters that return this

2022-09-06 Thread Mitch Claborn
patterns. -Original Message- From: Mitch Claborn Sent: Tuesday, September 6, 2022 5:49 AM To: users@netbeans.apache.org Subject: Re: Generate setters that return this I assume from the lack of response that this is not currently possible and would require development. Does anyone have

RE: Generate setters that return this

2022-09-06 Thread Greenberg, Gary
I think you are confusing setters with builders. Setters do not return anything, but builders do return this. Lookup design patterns. -Original Message- From: Mitch Claborn Sent: Tuesday, September 6, 2022 5:49 AM To: users@netbeans.apache.org Subject: Re: Generate setters that return

Re: Generate setters that return this

2022-09-06 Thread Mitch Claborn
I assume from the lack of response that this is not currently possible and would require development. Does anyone have an idea of how much work would be required to develop this? Mitch On 8/30/22 13:40, Mitch Claborn wrote: The "Generate Getters and Setters" dialog generates setters plain

Generate setters that return this

2022-08-30 Thread Mitch Claborn
The "Generate Getters and Setters" dialog generates setters plain Java setters with return type "void". Many times I'd like the setter to return "this" instead. Is there a way to have those generated automatically? -- Mitch