Package org.immutables.value
Enum Value.Style.ImplementationVisibility
- java.lang.Object
-
- java.lang.Enum<Value.Style.ImplementationVisibility>
-
- org.immutables.value.Value.Style.ImplementationVisibility
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Value.Style.ImplementationVisibility>
- Enclosing class:
- Value.Style
public static enum Value.Style.ImplementationVisibility extends java.lang.Enum<Value.Style.ImplementationVisibility>
If implementation visibility is more restrictive than visibility of abstract value type, then implementation type will not be exposed as a return type ofbuild()orof()construction methods. Builder visibility will follow.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PACKAGEImplementation will have package visibilityPRIVATEAllowed only when builder is enabled or nested inside enclosing type.PUBLICGenerated implementation class forced to be public.SAMEVisibility is the same as abstract value typeSAME_NON_RETURNEDDeprecated.use combination withValue.Style.overshadowImplementation()
-
Constructor Summary
Constructors Modifier Constructor Description privateImplementationVisibility()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Value.Style.ImplementationVisibilityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Value.Style.ImplementationVisibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PUBLIC
public static final Value.Style.ImplementationVisibility PUBLIC
Generated implementation class forced to be public.
-
SAME
public static final Value.Style.ImplementationVisibility SAME
Visibility is the same as abstract value type
-
SAME_NON_RETURNED
@Deprecated public static final Value.Style.ImplementationVisibility SAME_NON_RETURNED
Deprecated.use combination withValue.Style.overshadowImplementation()Visibility is the same, but it is not returned from build and factory method, instead abstract value type returned.
-
PACKAGE
public static final Value.Style.ImplementationVisibility PACKAGE
Implementation will have package visibility
-
PRIVATE
public static final Value.Style.ImplementationVisibility PRIVATE
Allowed only when builder is enabled or nested inside enclosing type. Builder visibility will follow the umbrella class visibility.
-
-
Method Detail
-
values
public static Value.Style.ImplementationVisibility[] 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 (Value.Style.ImplementationVisibility c : Value.Style.ImplementationVisibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Value.Style.ImplementationVisibility 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
-
-