Uses of Class
com.fasterxml.jackson.annotation.JsonInclude.Value
-
Uses of JsonInclude.Value in com.fasterxml.jackson.annotation
Fields in com.fasterxml.jackson.annotation declared as JsonInclude.ValueModifier and TypeFieldDescriptionstatic final JsonInclude.ValueJsonInclude.Value.ALL_ALWAYSConstant that indicates that property is to be always included, independent of value of the property.static final JsonInclude.ValueJsonInclude.Value.ALL_NON_ABSENTConstant that indicates that properties are included unless their value is: null "absent" value of a referential type (like Java 8 `Optional`, orAtomicReference); that is, something that would not deference to a non-null value.static final JsonInclude.ValueJsonInclude.Value.ALL_NON_DEFAULTThe equivalent toJsonInclude.Include.NON_DEFAULTfor specifying inclusion of non-defaults for both values and content.static final JsonInclude.ValueJsonInclude.Value.ALL_NON_EMPTYConstant that indicates that only properties with null value, or what is considered empty, are not to be included.static final JsonInclude.ValueJsonInclude.Value.ALL_NON_NULLConstant that indicates that only properties with non-null values are to be included.protected static final JsonInclude.ValueJsonInclude.Value.EMPTYMethods in com.fasterxml.jackson.annotation that return JsonInclude.ValueModifier and TypeMethodDescriptionstatic JsonInclude.ValueJsonInclude.Value.construct(JsonInclude.Include valueIncl, JsonInclude.Include contentIncl) Factory method to use for constructing an instance for componentsstatic JsonInclude.ValueJsonInclude.Value.construct(JsonInclude.Include valueIncl, JsonInclude.Include contentIncl, Class<?> valueFilter, Class<?> contentFilter) Factory method to use for constructing an instance for componentsstatic JsonInclude.ValueJsonInclude.Value.empty()static JsonInclude.ValueJsonInclude.Value.from(JsonInclude src) Factory method to use for constructing an instance from instance ofJsonIncludestatic JsonInclude.ValueJsonInclude.Value.merge(JsonInclude.Value base, JsonInclude.Value overrides) Helper method that will try to combine values from twoJsonInclude.Valueinstances, 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.ValueJsonInclude.Value.mergeAll(JsonInclude.Value... values) JsonInclude.Value.withContentFilter(Class<?> filter) Mutant factory that will either SetcontentasUSE_DEFAULTSandcontentFiltertofilter(if filter not null); or SetcontentasALWAYS(if filter null)JsonInclude.Value.withContentInclusion(JsonInclude.Include incl) 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.withValueFilter(Class<?> filter) Mutant factory that will either SetvalueasUSE_DEFAULTSandvalueFiltertofilter(if filter not null); or SetvalueasALWAYS(if filter null)JsonInclude.Value.withValueInclusion(JsonInclude.Include incl) Methods in com.fasterxml.jackson.annotation with parameters of type JsonInclude.ValueModifier and TypeMethodDescriptionstatic JsonInclude.ValueJsonInclude.Value.merge(JsonInclude.Value base, JsonInclude.Value overrides) Helper method that will try to combine values from twoJsonInclude.Valueinstances, 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.ValueJsonInclude.Value.mergeAll(JsonInclude.Value... values) 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.