public static class ObservableProperties.NumberBoundsChecker extends ObservableProperties.BoundsChecker <Number >
| Constructor and Description |
|---|
NumberBoundsChecker(Number
|
public NumberBoundsChecker(Numbermin, Number max, boolean includeMin, boolean includeMax)
min - the minimum accepted value.
max - the maximum accepted value.
includeMin - if true then this applies a "greater than or equal to" check. If false then this simply applies a "greater than" check, so if someone tries to use a value that is exactly equal to the minimum: it will fail.
includeMax - if true then this applies a "less than or equal to" check. If false then this simply applies a "less than" check, so if someone tries to use a value that is exactly equal to the maximum: it will fail.
public NumbergetMin()
public NumbergetMax()
public void check(Numbert, ObservableProperties .Key <Number > key) throws IllegalArgumentException
ObservableProperties.BoundsChecker
check in class
ObservableProperties.BoundsChecker <Number>
t - the value to check.
key - the key this value will be assigned to.
IllegalArgumentException - if the argument is somehow not an acceptable property value.
public StringtoString()