Class Options.DecimalOptionDef

java.lang.Object
com.portal.common.Options.OptionDef
com.portal.common.Options.DecimalOptionDef
Enclosing class:
Options

protected class Options.DecimalOptionDef extends Options.OptionDef
Definition of a BigDecimal option. This is an option that will be followed by a single BigDecimal value on the command line.
  • Constructor Details

    • DecimalOptionDef

      public DecimalOptionDef(String name, BigDecimal defValue, String desc)
      Construct a BigDecimal option. This is an option that will be followed by a single BigDecimal value on the command line. If the option does not appear on the command line then use the specified default value.

      Parameters:
      name - The name of the option. The name should include the leading "-" (i.e. -coefficient).
      defValue - The default value to use if the option does not appear on the command line.
      desc - The description of the option.
    • DecimalOptionDef

      public DecimalOptionDef(String name, String desc)
      Construct a BigDecimal option. This is an option that will be followed by a single BigDecimal value on the command line. This is a required option and the parse method will throw an exception if the option does not appear on the command line.

      Parameters:
      name - The name of the option. The name should include the leading "-" (i.e. -coefficient).
      desc - The description of the option.
  • Method Details