public enum Nullability extends java.lang.Enum<Nullability>
Enum Constant and Description |
---|
NOT_NULL
Value which cannot hold null; method which cannot return null; parameter which cannot accept null
|
NULLABLE
Value which holds null; method which can return null; parameter which accepts null
|
UNKNOWN
Nullability is not yet defined or "weak nullability" (e.g.
|
Modifier and Type | Method and Description |
---|---|
static Nullability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Nullability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Nullability NOT_NULL
public static final Nullability NULLABLE
public static final Nullability UNKNOWN
public static Nullability[] values()
for (Nullability c : Nullability.values()) System.out.println(c);
public static Nullability 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