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

Optional (int) property by value #331

Open
ljacqu opened this issue Jul 3, 2023 · 0 comments
Open

Optional (int) property by value #331

ljacqu opened this issue Jul 3, 2023 · 0 comments

Comments

@ljacqu
Copy link
Member

ljacqu commented Jul 3, 2023

I've come across a lot of configurations that have optional limits that can be disabled by 0 or -1. This could be represented as a Property<Optional<Integer>> so that the application doesn't need to deal with checking if the property is "disabled".

Would be nice for double, too. Probably not for other types? Esp. considering that for String, the default would just be an empty string. But maybe this can be implemented similar to the existing optional property—it just wraps another property.

@ljacqu ljacqu added good-first-issue Want to contribute? This label marks well-defined, [relatively] straightforward issues and removed good-first-issue Want to contribute? This label marks well-defined, [relatively] straightforward issues labels Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant