You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to have have a @Value.Style setting that allows me to have the constructor return the builder, so that I can have required parameters set by the constructor.
@Style(allMandatoryParameters=true) can help you, but in for such cases / and overall small amount of fields we just stick to using with-methods. If you copy object (shallowly) couple of times in the close lines of code, with high chances of escape-analysis eliminating some allocations, it may be as efficient as builder.
I'd love to have have a
@Value.Style
setting that allows me to have the constructor return the builder, so that I can have required parameters set by the constructor.I know this is similar to staged, but when it's only one or two parameters, that seems kind of overkill.
The text was updated successfully, but these errors were encountered: