public class NumberUtils extends Object
NumberUtils contains useful methods for manipulating numbers.| Modifier and Type | Field and Description |
|---|---|
static int |
INTEGER_ERROR |
| Constructor and Description |
|---|
NumberUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Number> |
convertNumberToTargetClass(Number number,
Class<T> targetClass) |
static <T extends Number> |
parseNumber(String text,
Class<T> targetClass) |
static int |
toInt(Object obj) |
public static final int INTEGER_ERROR
public static int toInt(Object obj)
public static <T extends Number> T convertNumberToTargetClass(Number number, Class<T> targetClass) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.