public static enum Nullable.NullBehaviour extends java.lang.Enum<Nullable.NullBehaviour>
Enum Constant and Description |
---|
NOT_NULLABLE
Specifies that null is not an allowed value for the property.
|
NULL_MEANS_FALSE
Only valid for Boolean properties that exist in the properties map
(i.e.
|
NULL_MEANS_NOT_SPECIFIED
Specifies that null is an allowed value for the property, and it
means that the value is not specified.
|
NULL_MEANS_NOT_SPECIFIED_AND_IGNORE
Specifies that null means that the value is not specified, and it
should be ignored.
|
NULLABLE
Specifies that null is an allowed and meaningful value for the
property.
|
Modifier and Type | Method and Description |
---|---|
static Nullable.NullBehaviour |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Nullable.NullBehaviour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Nullable.NullBehaviour NULLABLE
public static final Nullable.NullBehaviour NOT_NULLABLE
public static final Nullable.NullBehaviour NULL_MEANS_NOT_SPECIFIED
This is the default state for a property so should never need to be explictly annotated.
public static final Nullable.NullBehaviour NULL_MEANS_NOT_SPECIFIED_AND_IGNORE
PropertyManager
can return it from
getNullBehaviour
in order to mark properties that cannot be
compared between different providers.public static final Nullable.NullBehaviour NULL_MEANS_FALSE
public static Nullable.NullBehaviour[] values()
for (Nullable.NullBehaviour c : Nullable.NullBehaviour.values()) System.out.println(c);
public static Nullable.NullBehaviour 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