public class BooleanInputReader extends InputReader<Boolean,BooleanInputReader>
InputReader.ErrorMessagesProvider, InputReader.ParseResult<T>, InputReader.ValueChecker<T>defaultValue, equalsFunc, inlinePossibleValues, inputMasking, inputTrimming, numberedPossibleValues, parseErrorMessagesProvider, possibleValues, promptAdjustments, propertyName, textTerminalSupplier, valueCheckers, valueFormatter, valueListCheckers| Constructor and Description | 
|---|
| BooleanInputReader(Supplier<TextTerminal> textTerminalSupplier) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected List<String> | getDefaultErrorMessages(String s)If no  InputReader.parseErrorMessagesProviderexists, this method is used to provide the list of error messages for the input string s. | 
| protected InputReader.ParseResult<Boolean> | parse(String s)Parses the input string | 
| protected void | printPrompt(List<String> prompt,
           TextTerminal textTerminal)Displays a prompt inviting the user to enter a value. | 
| BooleanInputReader | withFalseInput(String falseInput)Configures the string value that corresponds to false. | 
| BooleanInputReader | withTrueInput(String trueInput)Configures the string value that corresponds to true. | 
checkConfiguration, getDefaultErrorMessage, getErrorMessages, getPossibleValue, isPossibleValue, isValueListMode, noDuplicatesChecker, nonEmptyListChecker, parseAndCheck, read, read, readList, readList, withDefaultValue, withEqualsFunc, withInlinePossibleValues, withInlinePossibleValues, withInputMasking, withInputTrimming, withNumberedPossibleValues, withNumberedPossibleValues, withParseErrorMessagesProvider, withPossibleValues, withPossibleValues, withPromptAdjustments, withPropertyName, withValueChecker, withValueFormatter, withValueListCheckerpublic BooleanInputReader(Supplier<TextTerminal> textTerminalSupplier)
public BooleanInputReader withTrueInput(String trueInput)
public BooleanInputReader withFalseInput(String falseInput)
protected List<String> getDefaultErrorMessages(String s)
InputReaderInputReader.parseErrorMessagesProvider exists, this method is used to provide the list of error messages for the input string s.
 It should return a non-empty list of messages.getDefaultErrorMessages in class InputReader<Boolean,BooleanInputReader>protected InputReader.ParseResult<Boolean> parse(String s)
InputReaderparse in class InputReader<Boolean,BooleanInputReader>s - the input stringInputReader.ParseResult that holds the parsed value and/or the error messages, if errors occurred.protected void printPrompt(List<String> prompt, TextTerminal textTerminal)
InputReaderprintPrompt in class InputReader<Boolean,BooleanInputReader>prompt - the list of prompt messages. May be null.textTerminal - the text terminal to which the messages are sent.