Alternative naming strategy for default builder methods #192
andrej-urvantsev
started this conversation in
Ideas
Replies: 1 comment
-
We already have an option to change the name of the builder. I guess it could optionally have some kind of substitution mechanism. This is the first request for it, though. Doesn't seem horizontally useful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, if we have for example record named
DeliveryEvent
, then generated builder will have nameDeliveryEventBuilder
with static builder methodbuilder()
, so it will be used in the code like this:which looks a bit ambiguous.
What if we instead could set alternative default(meaning that it should be possible to set it in
RecordBuilder.Template
) naming strategy which would generate builder methods which correspond to builder class name, then it will be possible to use static imports and code above instead will be written as:Beta Was this translation helpful? Give feedback.
All reactions