Yes, I could benefit from static factory methods. Thanks for giving me an idea.
But I was thinking only about restricting the visibility of the default no-arg 
constructor.

As both @MapConstructor and @TupleConstructor have a visibilityId parameter used
for fine-grained tuning of visibility, I expected a similar option for the 
default no-arg
constructor too. Maybe something like the noArgVisibilityId parameter in 
@MapConstructor.

Tnx,
Damir

Reply via email to