Package com.jahnreil_stratpoint.util
Class InputCheck
java.lang.Object
com.jahnreil_stratpoint.util.InputCheck
inputCheck class validates and clean the user input
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InputCheck
inputCheckValues
(String inputStr, int maxChoice, InputType inputType) Input check values input check.
-
Constructor Details
-
InputCheck
public InputCheck()
-
-
Method Details
-
inputCheckValues
Input check values input check.- Parameters:
inputStr
- the input str receives the inputstr in its raw valuesmaxChoice
- the max choice accepts the max choice in which the inputStr will be compared to, can be set to 0 if inputType is TO_DOUBLEinputType
- the input type accepts enum InputType: INT_WITH_MAX_CHOICE, INT_ONLY, and TO_DOUBLE only- Returns:
- the input check
-