public class StringToDouble
extends java.lang.Object
implements java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
StringToDouble() |
| Modifier and Type | Method and Description |
|---|---|
static StringToDouble |
getInstance()
Get the singleton instance
|
protected double |
signedPositiveInfinity() |
double |
stringToNumber(java.lang.CharSequence s)
Convert a string to a double.
|
public static StringToDouble getInstance()
public double stringToNumber(java.lang.CharSequence s)
throws java.lang.NumberFormatException
s - the String to be convertedjava.lang.NumberFormatException - if the value cannot be convertedprotected double signedPositiveInfinity()