Enum Class CheckManager

java.lang.Object
java.lang.Enum<CheckManager>
me.clientastisch.cardinal.checks.CheckManager
All Implemented Interfaces:
Serializable, Comparable<CheckManager>, Constable

public enum CheckManager extends Enum<CheckManager>
Since:
CAC v. 1.0
Author:
Clientastisch
  • Enum Constant Details

  • Method Details

    • values

      public static CheckManager[] 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 CheckManager 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
    • toggleCheck

      public static boolean toggleCheck(String check, boolean state)
      Toggle a check by name
      Parameters:
      check - full name e.g. NetFrequence Type B
      state - true to enable, false to disable
      Returns:
      true if enabled
    • getByName

      public static Optional<Checks> getByName(String name)
      Get a Check instance by name
      Parameters:
      name - full name e.g. NetFrequence Type B
      Returns:
      Optional of Check if found, else empty optional