Optional (int) property by value
ljacqu opened this issue · 0 comments
ljacqu commented
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.