public enum InclusionLevel extends Enum<InclusionLevel>
Enum Constant and Description |
---|
ALWAYS
Value that indicates that property is to be always included, independent of value of the property.
|
NON_ABSENT
Value that indicates that properties are included unless their value is:
null
"absent" value of a referential type (like Java 8 `Optional`, or
{link java.utl.concurrent.atomic.AtomicReference}); that is, something
that would not deference to a non-null value.
|
NON_DEFAULT
Meaning of this setting depends on context: whether annotation is specified for POJO type (class), or not
|
NON_EMPTY
Value that indicates that only properties with null value, or what is considered empty, are not to be included.
|
NON_NULL
Value that indicates that only properties with non-null values are to be included.
|
USE_DEFAULTS
Pseudo-value used to indicate that the higher-level defaults make sense,
to avoid overriding inclusion value.
|
Modifier and Type | Method and Description |
---|---|
static InclusionLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InclusionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InclusionLevel ALWAYS
public static final InclusionLevel NON_ABSENT
public static final InclusionLevel NON_DEFAULT
public static final InclusionLevel NON_EMPTY
public static final InclusionLevel NON_NULL
public static final InclusionLevel USE_DEFAULTS
public static InclusionLevel[] values()
for (InclusionLevel c : InclusionLevel.values()) System.out.println(c);
public static InclusionLevel 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 © 2022. All rights reserved.