Enum Class JsonAutoDetect.Visibility
java.lang.Object
java.lang.Enum<JsonAutoDetect.Visibility>
cloud.opencode.base.json.annotation.JsonAutoDetect.Visibility
- All Implemented Interfaces:
Serializable, Comparable<JsonAutoDetect.Visibility>, Constable
- Enclosing class:
JsonAutoDetect
Visibility level for property auto-detection
属性自动检测的可见性级别
- Since:
- JDK 25, opencode-base-json 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 ConstantDescriptionAny visibility level (including private).Use default visibility rules.Non-private visibility (package, protected, public).No auto-detection.Protected and public visibility. protected和public可见性。Public visibility only. -
Method Summary
Modifier and TypeMethodDescriptionstatic JsonAutoDetect.VisibilityReturns the enum constant of this class with the specified name.static JsonAutoDetect.Visibility[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY
Any visibility level (including private). 任何可见性级别(包括private)。 -
NON_PRIVATE
Non-private visibility (package, protected, public). 非private可见性(包级别、protected、public)。 -
PROTECTED_AND_PUBLIC
Protected and public visibility. protected和public可见性。 -
PUBLIC_ONLY
Public visibility only. 仅public可见性。 -
NONE
No auto-detection. 不自动检测。 -
DEFAULT
Use default visibility rules. 使用默认可见性规则。
-
-
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
-