Int property within range
ljacqu opened this issue · 1 comments
ljacqu commented
I might want to have an int property that can only be, for example, between 0 and 10. It would be nice to just let ConfigMe handle it and to be sure that the value is within the range.
gamerover98 commented
Yeah, it can be done for all other numeric types!
For example, FloatProperty
with a range like:
public class FrequencyProperty extends/implements FloatProperty {
@Override
public float maxValue() {
return 1.0F;
}
@Override
public float minValue() {
return -1.0F;
}
}