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 |
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 rangeValueOutOfRangeException - if the given value is not within the min-max rangeCopyright © 2021. All rights reserved.