|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
KeyboardInputValidator
.
See:
Description
Class Summary | |
---|---|
BooleanValidator | This class is used internally by the KeyboardUtils.readBoolFromKeyboard() methods. |
CharChoiceValidator | This class checks for single-character input within a range of allowed characters. |
CharValidator | This class is used internally by the KeyboardUtils.readCharFromKeyboard() methods. |
DateValidator | This class parses a string from user input. |
DoubleValidator | This class is used internally by the KeyboardUtils.readDoubleFromKeyboard() methods. |
FloatValidator | This class is used internally by the KeyboardUtils.readFloatFromKeyboard() methods. |
IntValidator | This class is used internally by the KeyboardUtils.readIntFromKeyboard() , KeyboardUtils.readHexFromKeyboard() ,
KeyboardUtils.readOctalFromKeyboard() and KeyboardUtils.readBinaryFromKeyboard() methods. |
LongValidator | This class is used internally by the KeyboardUtils.readLongFromKeyboard() methods. |
ValueTypeValidator<T> | Abstract base class for primitive data type input through the keyboard. |
This package provides basic implementations of KeyboardInputValidator
.
There are classes that handle boolean
, char
, double
, float
, int
and long
data types. Integer values can be input in any number base desired, with easy access to
decimal, hexadecimal, octal and binary int
s.
A choice validator is also provided for console menus: the user is limited to typing one character only among a range provided at construction time.
Apart from the last class mentioned (the choice validator), all other
validators are used internally by KeyboardUtils
itself, so there is no need to
access them directly. The summary table above shows what class is used by what method.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |