public final class NumberValidator extends Object
Modifier and Type | Method and Description |
---|---|
static void |
betweenZeroAndOne(float value)
Verifies if the given value fits in the
0-1 range |
static void |
inRange(float value,
float min,
float max)
Verifies if the given value fits in the
min-max range and if the max is greater than the
min |
public static void betweenZeroAndOne(float value)
0-1
rangeValueOutOfRangeException
- if the given value is not within the 0-1
rangepublic static void inRange(float value, float min, float max)
min-max
range and if the max
is greater than the
min
InvalidRangeException
- if the given min
is greater than the given max
ValueOutOfRangeException
- if the given value is not within the min-max
rangeCopyright © 2022. All rights reserved.