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
minInvalidRangeException - if the given min is greater than the given maxValueOutOfRangeException - if the given value is not within the min-max rangeCopyright © 2022. All rights reserved.