Class DoubleStringParser

java.lang.Object
com.martiansoftware.jsap.StringParser
com.martiansoftware.jsap.stringparsers.DoubleStringParser

public class DoubleStringParser extends StringParser
A StringParser for parsing Doubles. The parse() method delegates the actual parsing to new Double(String). If a NumberFormatException is thrown by new Double(String), it is encapsulated in a ParseException and re-thrown.
Author:
Marty Lamb
See Also:
  • Constructor Details

    • DoubleStringParser

      public DoubleStringParser()
      Deprecated.
      Use getParser() or, even better, JSAP.DOUBLE_PARSER.
      Creates a new DoubleStringParser.
  • Method Details