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