public class DoubleInputReader extends ComparableInputReader<Double,DoubleInputReader>
InputReader.ErrorMessageProvider, InputReader.ParseResult<T>
maxVal, minVal
defaultValue, errorMessageProvider, inputMasking, inputTrimming, numberedPossibleValues, possibleValues, propertyName, textTerminalSupplier, valueFormatter
Constructor and Description |
---|
DoubleInputReader(Supplier<TextTerminal> textTerminalSupplier) |
Modifier and Type | Method and Description |
---|---|
InputReader.ParseResult<Double> |
parse(String s)
Parses the input string
|
protected String |
typeNameWithIndefiniteArticle() |
checkConfiguration, getDefaultErrorMessage, isInRange, withMaxVal, withMinVal
getDefaultErrorMessage, getErrorMessage, printPrompt, read, read, withDefaultValue, withErrorMessageProvider, withInputMasking, withInputTrimming, withNumberedPossibleValues, withPossibleValues, withPossibleValues, withPropertyName, withValueFormatter
public DoubleInputReader(Supplier<TextTerminal> textTerminalSupplier)
protected String typeNameWithIndefiniteArticle()
typeNameWithIndefiniteArticle
in class ComparableInputReader<Double,DoubleInputReader>
public InputReader.ParseResult<Double> parse(String s)
InputReader
parse
in class InputReader<Double,DoubleInputReader>
s
- the input stringInputReader.ParseResult
that holds the parsed value and/or the error messages, if errors occurred.