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
Behavior when feature is disabled
功能禁用时的行为
- Since:
- JDK 25, opencode-base-feature V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionReturn default value (null for objects, 0 for primitives, false for boolean) 返回默认值(对象为null,基本类型为0,布尔为false)Skip method silently (same as RETURN_DEFAULT but clearer intent) 静默跳过方法(与RETURN_DEFAULT相同,但意图更清晰)Throw FeatureDisabledException 抛出FeatureDisabledException -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FeatureProxy.DisabledBehavior[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RETURN_DEFAULT
Return default value (null for objects, 0 for primitives, false for boolean) 返回默认值(对象为null,基本类型为0,布尔为false) -
THROW_EXCEPTION
Throw FeatureDisabledException 抛出FeatureDisabledException -
SKIP
Skip method silently (same as RETURN_DEFAULT but clearer intent) 静默跳过方法(与RETURN_DEFAULT相同,但意图更清晰)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-