Randgalt / record-builder

Record builder generator for Java records
Apache License 2.0
756 stars 55 forks source link

feat: add optional suffix to static builder #134

Open RichardTree opened 1 year ago

RichardTree commented 1 year ago

Not sure what you think of this, my team are coming from using Immutables heavily and are fond of their FieldName.of() syntax convention for static builders.

I’m assuming my change would enable us to call a static builder like FieldNameBuilder.FieldNameOf().

When statically imported, would read succinctly as FieldNameOf()

Randgalt commented 1 year ago

Thanks for the PR - I'll look at this soon.

Randgalt commented 1 year ago

My initial reaction is that RecordBuilder is getting too many options. We've already had some incompatible ones. We may need to re-think the customization scheme.