public enum Nullability extends java.lang.Enum<Nullability>
| Enum Constant and Description |
|---|
IMPOSSIBLE |
NOT_NULL |
NULL |
UNKNOWN |
| Modifier and Type | Method and Description |
|---|---|
Nullability |
and(Nullability other) |
boolean |
canBeNonNull() |
boolean |
canBeNull() |
static Nullability |
fromFlags(boolean canBeNull,
boolean canBeNonNull) |
Nullability |
invert() |
Nullability |
or(Nullability other) |
Nullability |
refine(Nullability other) |
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 NULL
public static final Nullability NOT_NULL
public static final Nullability UNKNOWN
public static final Nullability IMPOSSIBLE
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@NotNull public static Nullability fromFlags(boolean canBeNull, boolean canBeNonNull)
public boolean canBeNull()
public boolean canBeNonNull()
@NotNull public Nullability refine(@NotNull Nullability other)
@NotNull public Nullability invert()
@NotNull public Nullability and(@NotNull Nullability other)
@NotNull public Nullability or(@NotNull Nullability other)