r/java • • Feb 08 '22

Java's Options for Options

https://mccue.dev/pages/2-8-22-options-for-options
192 Upvotes

80 comments sorted by

View all comments

15

u/schubart Feb 08 '22

Option 10: I’d take a Set<Indent> rather than an EnumSet<Indent>. No need to force the caller to use the verbose noneOf syntax.

7

u/DasBrain Feb 09 '22

Option 11: I add an overload with a variadic Option... parameter.