| Modifier and Type | Field and Description |
|---|---|
static JsonInclude.Value |
JsonInclude.Value.ALL_ALWAYS
Constant that indicates that property is to be always included,
independent of value of the property.
|
static JsonInclude.Value |
JsonInclude.Value.ALL_NON_ABSENT
Constant that indicates that properties are included unless their value
is:
null
"absent" value of a referential type (like Java 8 `Optional`, or
AtomicReference); that is, something
that would not deference to a non-null value. |
static JsonInclude.Value |
JsonInclude.Value.ALL_NON_DEFAULT
The equivalent to
JsonInclude.Include.NON_DEFAULT for specifying
inclusion of non-defaults for both values and content. |
static JsonInclude.Value |
JsonInclude.Value.ALL_NON_EMPTY
Constant that indicates that only properties with null value,
or what is considered empty, are not to be included.
|
static JsonInclude.Value |
JsonInclude.Value.ALL_NON_NULL
Constant that indicates that only properties with non-null
values are to be included.
|
protected static JsonInclude.Value |
JsonInclude.Value.EMPTY |
| Modifier and Type | Method and Description |
|---|---|
static JsonInclude.Value |
JsonInclude.Value.construct(JsonInclude.Include valueIncl,
JsonInclude.Include contentIncl)
Factory method to use for constructing an instance for components
|
static JsonInclude.Value |
JsonInclude.Value.construct(JsonInclude.Include valueIncl,
JsonInclude.Include contentIncl,
Class<?> valueFilter,
Class<?> contentFilter)
Factory method to use for constructing an instance for components
|
static JsonInclude.Value |
JsonInclude.Value.empty() |
static JsonInclude.Value |
JsonInclude.Value.from(JsonInclude src)
Factory method to use for constructing an instance from instance of
JsonInclude |
static JsonInclude.Value |
JsonInclude.Value.merge(JsonInclude.Value base,
JsonInclude.Value overrides)
Helper method that will try to combine values from two
JsonInclude.Value
instances, using one as base settings, and the other as overrides
to use instead of base values when defined; base values are only
use if override does not specify a value (matching value is null
or logically missing). |
static JsonInclude.Value |
JsonInclude.Value.mergeAll(JsonInclude.Value... values) |
JsonInclude.Value |
JsonInclude.Value.withContentFilter(Class<?> filter)
Mutant factory that will either
Set
content as USE_DEFAULTS
and contentFilter to filter (if filter not null);
or
Set content as ALWAYS (if filter null)
|
JsonInclude.Value |
JsonInclude.Value.withContentInclusion(JsonInclude.Include incl) |
JsonInclude.Value |
JsonInclude.Value.withOverrides(JsonInclude.Value overrides)
Mutant factory method that merges values of this value with given override
values, so that any explicitly defined inclusion in overrides has precedence over
settings of this value instance.
|
JsonInclude.Value |
JsonInclude.Value.withValueFilter(Class<?> filter)
Mutant factory that will either
Set
value as USE_DEFAULTS
and valueFilter to filter (if filter not null);
or
Set value as ALWAYS (if filter null)
|
JsonInclude.Value |
JsonInclude.Value.withValueInclusion(JsonInclude.Include incl) |
| Modifier and Type | Method and Description |
|---|---|
static JsonInclude.Value |
JsonInclude.Value.merge(JsonInclude.Value base,
JsonInclude.Value overrides)
Helper method that will try to combine values from two
JsonInclude.Value
instances, using one as base settings, and the other as overrides
to use instead of base values when defined; base values are only
use if override does not specify a value (matching value is null
or logically missing). |
static JsonInclude.Value |
JsonInclude.Value.mergeAll(JsonInclude.Value... values) |
JsonInclude.Value |
JsonInclude.Value.withOverrides(JsonInclude.Value overrides)
Mutant factory method that merges values of this value with given override
values, so that any explicitly defined inclusion in overrides has precedence over
settings of this value instance.
|
Copyright © 2008–2026 FasterXML. All rights reserved.