- toInt
Convert a String to an int, returning a default value if the conversion fails.
If the string is nul
- isNumber
Checks whether the String a valid Java number.
Valid numbers include hexadecimal marked with the 0x
- isDigits
Checks whether the String contains only digit characters.
Null and empty String will returnfalse.
- toLong
Convert a String to a long, returning a default value if the conversion fails.
If the string is nul
- toFloat
Convert a String to a float, returning a default value if the conversion fails.
If the string str i
- toDouble
Convert a String to a double, returning a default value if the conversion fails.
If the string str
- compare
Compares two floats for order.
This method is more comprehensive than the standard Java greater tha
- createDouble
Convert a String to a Double.
Returns null if the string is null.
- createInteger
Convert a String to a Integer, handling hex and octal notations.
Returns null if the string is null
- createLong
Convert a String to a Long.
Returns null if the string is null.
- createNumber
Turns a string value into a java.lang.Number.
First, the value is examined for a type qualifier on
- createBigDecimal
Convert a String to a BigDecimal.
Returns null if the string is null.