Class FloatStringParser

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

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

    • FloatStringParser

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