Enum Class FeatureProxy.DisabledBehavior

java.lang.Object
java.lang.Enum<FeatureProxy.DisabledBehavior>
cloud.opencode.base.feature.proxy.FeatureProxy.DisabledBehavior
All Implemented Interfaces:
Serializable, Comparable<FeatureProxy.DisabledBehavior>, Constable
Enclosing class:
FeatureProxy

public static enum FeatureProxy.DisabledBehavior extends Enum<FeatureProxy.DisabledBehavior>
Behavior when feature is disabled 功能禁用时的行为
Since:
JDK 25, opencode-base-feature V1.0.0
Author:
Leon Soo www.LeonSoo.com
  • Enum Constant Details

    • RETURN_DEFAULT

      public static final FeatureProxy.DisabledBehavior RETURN_DEFAULT
      Return default value (null for objects, 0 for primitives, false for boolean) 返回默认值(对象为null,基本类型为0,布尔为false)
    • THROW_EXCEPTION

      public static final FeatureProxy.DisabledBehavior THROW_EXCEPTION
      Throw FeatureDisabledException 抛出FeatureDisabledException
    • SKIP

      public static final FeatureProxy.DisabledBehavior SKIP
      Skip method silently (same as RETURN_DEFAULT but clearer intent) 静默跳过方法(与RETURN_DEFAULT相同,但意图更清晰)
  • Method Details

    • values

      public static FeatureProxy.DisabledBehavior[] 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 FeatureProxy.DisabledBehavior 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