ConfigMe
ConfigMe copied to clipboard
Int property within range
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.
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;
}
}