2 ms·
Yep. I'd prefer enum-like syntactic sugar, something like: public class Name { private Name(String name){...} flags { MISSIN
by recursivedoubts 6y ago
Yep. I'd prefer enum-like syntactic sugar, something like:
public class Name {
private Name(String name){...}
flags {
MISSING, NOT_APPLICABLE, NOT_AVAILABLE_YET, FORBIDDEN
}
...
}
In particular, you shouldn't have to specify a constructor, since these are flag values that don't necessary have any state associated with them.