public static enum PropertyGetter.NullValuePolicy extends Enum<PropertyGetter.NullValuePolicy>
| Enum Constant and Description |
|---|
CREATE_NEW
Create new instance when
null value encountered. |
NPE
Throws
NullPointerException when null value encountered |
RETURN_NULL
Return
null when null value encountered. |
| Modifier and Type | Method and Description |
|---|---|
static PropertyGetter.NullValuePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PropertyGetter.NullValuePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PropertyGetter.NullValuePolicy RETURN_NULL
null when null value encountered.
This is the default policypublic static final PropertyGetter.NullValuePolicy NPE
NullPointerException when null value encounteredpublic static final PropertyGetter.NullValuePolicy CREATE_NEW
null value encountered.
This is useful when use PropertyGetter along with PropertySetter
to set a value on a property path. E.g. set "a string" to "bar.0.zee" on
foo entitypublic static PropertyGetter.NullValuePolicy[] values()
for (PropertyGetter.NullValuePolicy c : PropertyGetter.NullValuePolicy.values()) System.out.println(c);
public static PropertyGetter.NullValuePolicy 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 nullCopyright © 2017. All Rights Reserved.