java.lang.Object
eu.svjatoslav.commons.cli_helper.parameter_parser.Option<Float,FloatOption>
eu.svjatoslav.commons.cli_helper.parameter_parser.parameter.FloatOption

public class FloatOption extends Option<Float,FloatOption>
  • Constructor Details

    • FloatOption

      public FloatOption(String description)
  • Method Details

    • describeFormat

      public String describeFormat()
      Specified by:
      describeFormat in class Option<Float,FloatOption>
      Returns:
      Single line parameter type description. For example: "file", "date", "integer", "regular expression", etc..

      Note: for argument purpose description there is Option.description

    • getValue

      public Float getValue()
      Description copied from class: Option
      Returns the value of the object.
      Specified by:
      getValue in class Option<Float,FloatOption>
      Returns:
      the value of the object.
    • isValid

      public boolean isValid(String value)
      Specified by:
      isValid in class Option<Float,FloatOption>
      Parameters:
      value - value to validate
      Returns:
      true if value is correct, false otherwise.