| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Number | convertNumberToTargetClass(Number number, Class<T> targetClass)
Deprecated
use
ObjectUtil#convert(Object, Class)
Convert the given number into an instance of the given target class. |
| public static Number | Returns: the parsed numberthe text to convert text, Class<T> the target class to parse into targetClass)Parse the given text into a number instance of the given target class,
using the corresponding default |
| NumberUtil | back to summary |
|---|---|
| public NumberUtil() | |
| convertNumberToTargetClass | back to summary |
|---|---|
| public static Number convertNumberToTargetClass(Number number, Class<T> targetClass) throws IllegalArgumentException
Deprecated Convert the given number into an instance of the given target class. | |
| parseNumber | back to summary |
|---|---|
| public static Number parseNumber(String text, Class<T> targetClass) Parse the given text into a number instance of the given target class,
using the corresponding default
| |