Enum Class Validity

java.lang.Object
java.lang.Enum<Validity>
cdc.validation.Validity
All Implemented Interfaces:
Serializable, Comparable<Validity>, Constable

public enum Validity extends Enum<Validity>
Enumeration of validities.
Author:
Damien Carbonne
  • Enum Constant Details

    • 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 Details

    • values

      public static Validity[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Validity valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isValidOrDubious

      public boolean isValidOrDubious()
    • worse

      public static Validity worse(Validity value1, Validity value2)