public class ByteInputReader extends ComparableInputReader<Byte,ByteInputReader>
InputReader.ErrorMessagesProvider, InputReader.ParseResult<T>, InputReader.ValueChecker<T>
maxVal, minVal
defaultValue, equalsFunc, inputMasking, inputTrimming, numberedPossibleValues, parseErrorMessagesProvider, possibleValues, propertyName, textTerminalSupplier, valueCheckers, valueFormatter
Constructor and Description |
---|
ByteInputReader(Supplier<TextTerminal> textTerminalSupplier) |
Modifier and Type | Method and Description |
---|---|
protected InputReader.ParseResult<Byte> |
parse(String s)
Parses the input string
|
protected String |
typeNameWithIndefiniteArticle() |
checkConfiguration, getMinMaxErrorMessage, isInRange, withMaxVal, withMinVal
getDefaultErrorMessage, getDefaultErrorMessages, getErrorMessages, isPossibleValue, parseAndCheck, printPrompt, read, read, withDefaultValue, withEqualsFunc, withInputMasking, withInputTrimming, withNumberedPossibleValues, withParseErrorMessagesProvider, withPossibleValues, withPossibleValues, withPropertyName, withValueChecker, withValueFormatter
public ByteInputReader(Supplier<TextTerminal> textTerminalSupplier)
protected String typeNameWithIndefiniteArticle()
typeNameWithIndefiniteArticle
in class ComparableInputReader<Byte,ByteInputReader>
protected InputReader.ParseResult<Byte> parse(String s)
InputReader
parse
in class InputReader<Byte,ByteInputReader>
s
- the input stringInputReader.ParseResult
that holds the parsed value and/or the error messages, if errors occurred.