public class NumericUtils
extends Object
- Since:
- 1.0
- Author:
- yingzhan
-
Constructor Summary
Constructors
-
Method Summary
static boolean
static byte
static byte
static double
static double
static float
static float
static int
static int
static long
static long
static short
static short
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NumericUtils
public NumericUtils()
-
Method Details
-
-
-
-
toInt
public static int toInt(String str)
-
toInt
public static int toInt(String str,
int defaultValue)
-
toLong
public static long toLong(String str)
-
toLong
public static long toLong(String str,
long defaultValue)
-
toFloat
public static float toFloat(String str)
-
toFloat
public static float toFloat(String str,
float defaultValue)
-
toDouble
public static double toDouble(String str)
-
toDouble
public static double toDouble(String str,
double defaultValue)
-
toByte
public static byte toByte(String str)
-
toByte
public static byte toByte(String str,
byte defaultValue)
-
toShort
public static short toShort(String str)
-
toShort
public static short toShort(String str,
short defaultValue)
-
isNumeric
public static boolean isNumeric(String s)