Class DoubleInput

java.lang.Object
org.strassburger.tui4j.input.Input<Double,DoubleInput>
org.strassburger.tui4j.input.DoubleInput

public class DoubleInput extends Input<Double,DoubleInput>
  • Constructor Details

    • DoubleInput

      public DoubleInput()
  • Method Details

    • read

      public Double read() throws InputValidationException
      Description copied from class: Input
      Read the input value
      Specified by:
      read in class Input<Double,DoubleInput>
      Returns:
      the input value
      Throws:
      InputValidationException - if the input is invalid and retryOnInvalid is false
    • setInline

      public DoubleInput setInline(boolean inline)
    • setAllowComma

      public DoubleInput setAllowComma(boolean allowComma)
      Set whether the input should allow commas as decimal separators.
      Parameters:
      allowComma - Whether to allow commas as decimal separators.
      Returns:
      The DoubleInput object.