Enum Validity

    • Enum Constant Detail

      • VALID

        public static final Validity VALID
        The value is valid.
      • DUBIOUS

        public static final Validity DUBIOUS
        The value is technically valid, but should be changed from a user point of view.
      • ERRONEOUS

        public static final Validity ERRONEOUS
        The value is invalid.
    • Method Detail

      • values

        public static Validity[] 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 (Validity c : Validity.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Validity 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
      • isValidOrDubious

        public boolean isValidOrDubious()