Enum Class FeaturePriority

java.lang.Object
java.lang.Enum<FeaturePriority>
ovh.mythmc.gestalt.features.FeaturePriority
All Implemented Interfaces:
Serializable, Comparable<FeaturePriority>, Constable

public enum FeaturePriority extends Enum<FeaturePriority>
Defines the execution priority of a Feature-annotated class.

Priority determines the order in which features are enabled and disabled when Gestalt.enableAllFeatures() or Gestalt.disableAllFeatures() is called. Features with HIGHEST priority are processed first.

  • Enum Constant Details

    • HIGHEST

      public static final FeaturePriority HIGHEST
      Highest priority; processed before all others.
    • HIGH

      public static final FeaturePriority HIGH
      High priority; processed second.
    • NORMAL

      public static final FeaturePriority NORMAL
      Default priority.
    • LOW

      public static final FeaturePriority LOW
      Low priority; processed fourth.
    • LOWEST

      public static final FeaturePriority LOWEST
      Lowest priority; processed last.
  • Method Details

    • values

      public static FeaturePriority[] 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 FeaturePriority 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