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:
Serializable,Comparable<Value.Style.ImplementationVisibility>,java.lang.constant.Constable
- Enclosing class:
Value.Style
public static enum Value.Style.ImplementationVisibility
extends 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 of
build() or of()
construction methods. Builder visibility will follow.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionImplementation will have package visibilityAllowed only when builder is enabled or nested inside enclosing type.Generated implementation class forced to be public.Visibility is the same as abstract value typeDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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 Details
-
PUBLIC
Generated implementation class forced to be public. -
SAME
Visibility is the same as abstract value type -
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
Implementation will have package visibility -
PRIVATE
Allowed only when builder is enabled or nested inside enclosing type. Builder visibility will follow the umbrella class visibility.
-
-
Constructor Details
-
ImplementationVisibility
private ImplementationVisibility()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
Value.Style.overshadowImplementation()