Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "three-state" boolean value, OptBoolean, to allow "yes/no/dont-care" choices #60

Closed
cowtowncoder opened this issue May 31, 2015 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

One of design flaws of Java annotations is the lack of null (or "missing") values.
While it is possible to specify default values for annotation properties, there is no way to distinguish between explicit settings, and defaults; and by extension, impossible to override an explicit choice.
This is most problematic with multi-property annotations, where one may want to only set a subset of properties to explicit values.

To address this problem, let's introduce a new enum, OptBoolean, to allow "optional boolean" values.

@cowtowncoder cowtowncoder added this to the 2.6.0 milestone May 31, 2015
@cowtowncoder cowtowncoder changed the title Add a "three-state" boolean value, Nullean, to allow "yes/no/dunno" choices Add a "three-state" boolean value, OptBoolean, to allow "yes/no/dont-care" choices Jun 2, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant