Enum Collatz.SaneParameterErrMsg

    • Enum Constant Detail

      • SANE_PARAMS_P

        public static final Collatz.SaneParameterErrMsg SANE_PARAMS_P
        Message to print in the FailedSaneParameterCheck if P, the modulus, is zero.
      • SANE_PARAMS_A

        public static final Collatz.SaneParameterErrMsg SANE_PARAMS_A
        Message to print in the FailedSaneParameterCheck if a, the multiplicand, is zero.
    • Method Detail

      • values

        public static Collatz.SaneParameterErrMsg[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Collatz.SaneParameterErrMsg c : Collatz.SaneParameterErrMsg.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Collatz.SaneParameterErrMsg valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getErrorMessage

        protected String getErrorMessage()
        Retrieve the error message associated with the enum.
        Returns:
        The message to pass to the thrown error.