|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdata.NumberParser
public class NumberParser
Class that provides a static method to parse a string and return a double.
No constructor is needed because the class is only used in static context.
| Constructor Summary | |
|---|---|
NumberParser()
|
|
| Method Summary | |
|---|---|
static double |
parseNumber(java.lang.String string)
Addresses issues with the standard parsing method of NumberFormat by verifying the parse position after parsing to ensure that all the input was parsed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberParser()
| Method Detail |
|---|
public static double parseNumber(java.lang.String string)
throws java.text.ParseException
string - the string to be parsed
java.text.ParseException - the parse exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||