public class GenericInputReader<T> extends InputReader<T,GenericInputReader<T>>
InputReader.ErrorMessagesProvider, InputReader.ParseResult<T>, InputReader.ValueChecker<T>| Modifier and Type | Field and Description |
|---|---|
protected Function<String,InputReader.ParseResult<T>> |
parser |
defaultValue, equalsFunc, inputMasking, inputTrimming, numberedPossibleValues, parseErrorMessagesProvider, possibleValues, propertyName, textTerminalSupplier, valueCheckers, valueFormatter, valueListCheckers| Constructor and Description |
|---|
GenericInputReader(Supplier<TextTerminal> textTerminalSupplier,
Function<String,InputReader.ParseResult<T>> parser) |
| Modifier and Type | Method and Description |
|---|---|
protected InputReader.ParseResult<T> |
parse(String s)
Parses the input string
|
checkConfiguration, getDefaultErrorMessage, getDefaultErrorMessages, getErrorMessages, isPossibleValue, isValueListMode, noDuplicatesChecker, nonEmptyListChecker, parseAndCheck, printPrompt, read, read, readList, readList, withDefaultValue, withEqualsFunc, withInputMasking, withInputTrimming, withNumberedPossibleValues, withParseErrorMessagesProvider, withPossibleValues, withPossibleValues, withPropertyName, withValueChecker, withValueFormatter, withValueListCheckerprotected final Function<String,InputReader.ParseResult<T>> parser
public GenericInputReader(Supplier<TextTerminal> textTerminalSupplier, Function<String,InputReader.ParseResult<T>> parser)
protected InputReader.ParseResult<T> parse(String s)
InputReaderparse in class InputReader<T,GenericInputReader<T>>s - the input stringInputReader.ParseResult that holds the parsed value and/or the error messages, if errors occurred.