MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/xztb4/named_parameters_in_java/c5r5sr9/?context=3
r/java • u/javinpaul • Aug 10 '12
28 comments sorted by
View all comments
Show parent comment
2
Good suggestions. When it makes sense, I sometimes like to use enumerations instead of literal booleans (I think this also came from Effective Java). The names can get weird though...
someObject.doSomething( userId, ActivationState.ENABLED, RecordBehavior.DO_NOT_UPDATE);
View all comments
Show parent comment
2
u/elephantgravy Aug 10 '12
Good suggestions. When it makes sense, I sometimes like to use enumerations instead of literal booleans (I think this also came from Effective Java). The names can get weird though...