Enum Class CheckResult.Status

java.lang.Object
java.lang.Enum<CheckResult.Status>
com.priint.pubserver.check.CheckResult.Status
All Implemented Interfaces:
Serializable, Comparable<CheckResult.Status>, Constable
Enclosing class:
CheckResult

public static enum CheckResult.Status extends Enum<CheckResult.Status>
The overall status of a check or status of a single issue
  • Enum Constant Details

    • UNKNOWN

      public static final CheckResult.Status UNKNOWN
      Status could not be determined
    • OK

      public static final CheckResult.Status OK
      Everything fine
    • WARNING

      public static final CheckResult.Status WARNING
      At the time this causes no functional limitation, however this issue could cause problems in the future or somehow looks weird.
    • ERROR

      public static final CheckResult.Status ERROR
      This causes problems and must be fixed immediately
  • Method Details

    • values

      public static CheckResult.Status[] 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 CheckResult.Status 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
    • getLabel

      public String getLabel()
      Returns:
      Label of the enumeration value.
    • isMoreSignificant

      public boolean isMoreSignificant(CheckResult.Status otherStatus)
      Compares two states and returns whether the current status is more significant than the other
      Parameters:
      otherStatus - status to compare with
      Returns:
      true if current status is more significant than other