public class Numbers extends Object
| Constructor and Description |
|---|
Numbers() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isNumber(Object value) |
static double |
toDouble(Object value) |
static double |
toDouble(Object value,
double defaultValue) |
static Double |
toDoubleObject(Object value) |
static int |
toInt(Object value) |
static int |
toInt(Object value,
int defaultValue) |
static Integer |
toIntegerObject(Object value) |
static long |
toLong(Object value) |
static long |
toLong(Object value,
long defaultValue) |
static Long |
toLongObject(Object value) |
public static boolean isNumber(Object value)
public static int toInt(Object value)
public static int toInt(Object value, int defaultValue)
public static double toDouble(Object value)
public static double toDouble(Object value, double defaultValue)
public static long toLong(Object value)
public static long toLong(Object value, long defaultValue)
Copyright © 2021 Open Foris. All rights reserved.