Package io.micronaut.core.annotation
Enum Introspected.Visibility
- java.lang.Object
-
- java.lang.Enum<Introspected.Visibility>
-
- io.micronaut.core.annotation.Introspected.Visibility
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Introspected.Visibility>
- Enclosing class:
- Introspected
public static enum Introspected.Visibility extends java.lang.Enum<Introspected.Visibility>
Visibility policy for bean properties and fields.- Since:
- 3.2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
The default behaviour which in addition to public getters and setters will also include package protected fields if anIntrospected.AccessKind
ofIntrospected.AccessKind.FIELD
is specified.PUBLIC
Only public methods and/or fields are included.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Introspected.Visibility
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Introspected.Visibility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final Introspected.Visibility PUBLIC
Only public methods and/or fields are included.
-
DEFAULT
public static final Introspected.Visibility DEFAULT
The default behaviour which in addition to public getters and setters will also include package protected fields if anIntrospected.AccessKind
ofIntrospected.AccessKind.FIELD
is specified.
-
-
Method Detail
-
values
public static Introspected.Visibility[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Introspected.Visibility c : Introspected.Visibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Introspected.Visibility valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-