Class InputCheck

java.lang.Object
com.jahnreil_stratpoint.util.InputCheck

public class InputCheck extends Object
inputCheck class validates and clean the user input
  • Constructor Details

    • InputCheck

      public InputCheck()
  • Method Details

    • inputCheckValues

      public static InputCheck inputCheckValues(String inputStr, int maxChoice, InputType inputType)
      Input check values input check.
      Parameters:
      inputStr - the input str receives the inputstr in its raw values
      maxChoice - the max choice accepts the max choice in which the inputStr will be compared to, can be set to 0 if inputType is TO_DOUBLE
      inputType - the input type accepts enum InputType: INT_WITH_MAX_CHOICE, INT_ONLY, and TO_DOUBLE only
      Returns:
      the input check