public class IntInputReader extends ComparableInputReader<java.lang.Integer,IntInputReader>
InputReader.ErrorMessagesProvider, InputReader.ParseResult<T>, InputReader.ValueChecker<T>
maxVal, minVal
defaultValue, equalsFunc, inlinePossibleValues, inputMasking, inputTrimming, itemName, numberedPossibleValues, parseErrorMessagesProvider, possibleValues, promptAdjustments, propertiesConfigurator, textTerminalSupplier, valueCheckers, valueFormatter, valueListCheckers
Constructor and Description |
---|
IntInputReader(java.util.function.Supplier<TextTerminal<?>> textTerminalSupplier) |
Modifier and Type | Method and Description |
---|---|
protected InputReader.ParseResult<java.lang.Integer> |
parse(java.lang.String s)
Parses the input string
|
protected java.lang.String |
typeNameWithIndefiniteArticle() |
checkConfiguration, getMinMaxErrorMessage, isInRange, withMaxVal, withMinVal
executeWithTerminal, getDefaultErrorMessage, getDefaultErrorMessages, getErrorMessages, getPossibleValue, isPossibleValue, isValueListMode, noDuplicatesChecker, nonEmptyListChecker, parseAndCheck, printPrompt, read, read, readList, readList, readWithPrompt, withDefaultValue, withEqualsFunc, withInlinePossibleValues, withInlinePossibleValues, withInputMasking, withInputTrimming, withItemName, withNumberedPossibleValues, withNumberedPossibleValues, withParseErrorMessagesProvider, withPossibleValues, withPossibleValues, withPromptAdjustments, withPropertiesConfigurator, withValueChecker, withValueFormatter, withValueListChecker
public IntInputReader(java.util.function.Supplier<TextTerminal<?>> textTerminalSupplier)
protected java.lang.String typeNameWithIndefiniteArticle()
typeNameWithIndefiniteArticle
in class ComparableInputReader<java.lang.Integer,IntInputReader>
protected InputReader.ParseResult<java.lang.Integer> parse(java.lang.String s)
InputReader
parse
in class InputReader<java.lang.Integer,IntInputReader>
s
- the input stringInputReader.ParseResult
that holds the parsed value and/or the error messages, if errors occurred.