Package org.strassburger.tui4j.input
Class DoubleInput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread()Read the input valuesetAllowComma(boolean allowComma) Set whether the input should allow commas as decimal separators.setInline(boolean inline) Methods inherited from class org.strassburger.tui4j.input.Input
addValidationRule, addValidationRules, getCursor, getErrorMessage, getLabel, getPrinter, getScanner, isRetryOnInvalid, setCursor, setErrorMessage, setErrorMessage, setLabel, setLabel, setPrinter, setRetryOnInvalid, setScanner, validate
-
Constructor Details
-
DoubleInput
public DoubleInput()
-
-
Method Details
-
read
Description copied from class:InputRead the input value- Specified by:
readin classInput<Double,DoubleInput> - Returns:
- the input value
- Throws:
InputValidationException- if the input is invalid and retryOnInvalid is false
-
setInline
-
setAllowComma
Set whether the input should allow commas as decimal separators.- Parameters:
allowComma- Whether to allow commas as decimal separators.- Returns:
- The DoubleInput object.
-