public static enum PropertyCodeGenerator.Initially extends java.lang.Enum<PropertyCodeGenerator.Initially>
| Enum Constant and Description |
|---|
HAS_DEFAULT
The property is known to have a default value.
|
OPTIONAL
The property need not be set.
|
REQUIRED
The property must have a value set before build can be called.
|
| Modifier and Type | Method and Description |
|---|---|
static PropertyCodeGenerator.Initially |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PropertyCodeGenerator.Initially[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyCodeGenerator.Initially REQUIRED
This may simply mean we have not detected the property being set in the builder's constructor. The property's field may be null in the builder or on a partial, but will never be null on a value instance.
public static final PropertyCodeGenerator.Initially OPTIONAL
This may mean the user chose an explicit Optional type (e.g. Java 8's Optional), or it may mean a Nullable annotation has been spotted. The property's field may be null.
public static final PropertyCodeGenerator.Initially HAS_DEFAULT
This may be because we detected the property being set in the builder's constructor, or because the type itself has a reasonable default (e.g. an empty collection). The property's field will never be null.
public static PropertyCodeGenerator.Initially[] values()
for (PropertyCodeGenerator.Initially c : PropertyCodeGenerator.Initially.values()) System.out.println(c);
public static PropertyCodeGenerator.Initially valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null