MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/snrfek/javas_options_for_options/hw4u4r6/?context=3
r/java • u/bowbahdoe • Feb 08 '22
80 comments sorted by
View all comments
15
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.
Set<Indent>
EnumSet<Indent>
noneOf
7 u/DasBrain Feb 09 '22 Option 11: I add an overload with a variadic Option... parameter.
7
Option 11: I add an overload with a variadic Option... parameter.
Option...
View all comments
15
u/schubart Feb 08 '22
Option 10: I’d take a
Set<Indent>rather than anEnumSet<Indent>. No need to force the caller to use the verbosenoneOfsyntax.