Class InputValidation

java.lang.Object
com.team2813.lib2813.util.InputValidation

public class InputValidation extends Object
  • Method Details

    • checkCanId

      public static int checkCanId(int id)
      Checks if the input is a valid CAN Id, and throws an exception if it isn't
      Parameters:
      id - the can id, between 0 and 62, inclusive
      Returns:
      the id
      Throws:
      InvalidCanIdException - if the id is invalid