public static class JsonIncludeProperties.Value extends Object implements JacksonAnnotationValue<JsonIncludeProperties>, Serializable
JsonIncludeProperties
annotation, as well as to provide possible overrides from non-annotation sources.Modifier and Type | Field and Description |
---|---|
protected Set<String> |
_included
Name of the properties to include.
|
protected static JsonIncludeProperties.Value |
ALL
Default instance has no explicitly included fields
|
Modifier | Constructor and Description |
---|---|
protected |
Value(Set<String> included) |
Modifier and Type | Method and Description |
---|---|
static JsonIncludeProperties.Value |
all() |
boolean |
equals(Object o) |
static JsonIncludeProperties.Value |
from(JsonIncludeProperties src) |
Set<String> |
getIncluded() |
int |
hashCode() |
String |
toString() |
Class<JsonIncludeProperties> |
valueFor()
Introspection method that may be used to find actual annotation that may be used
as the source for value instance.
|
JsonIncludeProperties.Value |
withOverrides(JsonIncludeProperties.Value overrides)
Mutant factory method to override the current value with an another,
merging the included fields so that only entries that exist in both original
and override set are included, taking into account that "undefined"
JsonIncludeProperties.Value s
do not count ("undefined" meaning that getIncluded() returns null ). |
protected static final JsonIncludeProperties.Value ALL
public static JsonIncludeProperties.Value from(JsonIncludeProperties src)
public static JsonIncludeProperties.Value all()
public Class<JsonIncludeProperties> valueFor()
JacksonAnnotationValue
valueFor
in interface JacksonAnnotationValue<JsonIncludeProperties>
public Set<String> getIncluded()
null
for "not defined"public JsonIncludeProperties.Value withOverrides(JsonIncludeProperties.Value overrides)
JsonIncludeProperties.Value
s
do not count ("undefined" meaning that getIncluded()
returns null
).
So: overriding with "undefined" returns original Value
as-is; overriding an
"undefined" Value
returns override Value
as-is.Copyright © 2008–2024 FasterXML. All rights reserved.