Class CheckManager


  • public class CheckManager
    extends java.lang.Object
    Since:
    CAC v. 0.9945
    Author:
    Clientastisch
    • Constructor Summary

      Constructors 
      Constructor Description
      CheckManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Optional<Checks> getByName​(java.lang.String name)
      Get a check instance by name
      static boolean toggleCheck​(java.lang.String check, boolean toggle)
      Disable a check for a certain plugin, addon or case to decrease the amount of possible false positives.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CheckManager

        public CheckManager()
    • Method Detail

      • toggleCheck

        public static boolean toggleCheck​(java.lang.String check,
                                          boolean toggle)
        Disable a check for a certain plugin, addon or case to decrease the amount of possible false positives.
        Parameters:
        check - the name of the detection that will be modified
        toggle - set the new toggle-state of a check
        Returns:
        returns whether the check exists or not
      • getByName

        public static java.util.Optional<Checks> getByName​(java.lang.String name)
        Get a check instance by name
        Parameters:
        name - the name of the detection
        Returns:
        returns an optional of the potential instance