public enum NullPolicy extends Enum<NullPolicy>
Enum Constant and Description |
---|
DISABLE_PRECONDITIONS
Don't perform any null checking.
|
NON_NULL_BY_DEFAULT
Assume that all parameters are null unless they are annotated with
Nullable . |
NULL_BY_DEFAULT
Assume that all parameters are nullable unless they are annotated with
Nonnull . |
Modifier and Type | Method and Description |
---|---|
static NullPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NullPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullPolicy DISABLE_PRECONDITIONS
public static final NullPolicy NON_NULL_BY_DEFAULT
Nullable
.public static final NullPolicy NULL_BY_DEFAULT
Nonnull
.public static NullPolicy[] values()
for (NullPolicy c : NullPolicy.values()) System.out.println(c);
public static NullPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null