Package com.fasterxml.jackson.annotation
Class JsonIncludeProperties.Value
- java.lang.Object
 - 
- com.fasterxml.jackson.annotation.JsonIncludeProperties.Value
 
 
- 
- All Implemented Interfaces:
 JacksonAnnotationValue<JsonIncludeProperties>,java.io.Serializable
- Enclosing class:
 - JsonIncludeProperties
 
public static class JsonIncludeProperties.Value extends java.lang.Object implements JacksonAnnotationValue<JsonIncludeProperties>, java.io.Serializable
Helper class used to contain information from a singleJsonIncludePropertiesannotation, as well as to provide possible overrides from non-annotation sources.- Since:
 - 2.12
 - See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonIncludeProperties.Valueall()booleanequals(java.lang.Object o)static JsonIncludeProperties.Valuefrom(JsonIncludeProperties src)java.util.Set<java.lang.String>getIncluded()inthashCode()java.lang.StringtoString()java.lang.Class<JsonIncludeProperties>valueFor()Introspection method that may be used to find actual annotation that may be used as the source for value instance.JsonIncludeProperties.ValuewithOverrides(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.Values do not count ("undefined" meaning thatgetIncluded()returnsnull). 
 - 
 
- 
- 
Method Detail
- 
from
public static JsonIncludeProperties.Value from(JsonIncludeProperties src)
 
- 
all
public static JsonIncludeProperties.Value all()
 
- 
valueFor
public java.lang.Class<JsonIncludeProperties> valueFor()
Description copied from interface:JacksonAnnotationValueIntrospection method that may be used to find actual annotation that may be used as the source for value instance.- Specified by:
 valueForin interfaceJacksonAnnotationValue<JsonIncludeProperties>- Returns:
 - Annotation class for which instances of this value class are created
 
 
- 
getIncluded
public java.util.Set<java.lang.String> getIncluded()
- Returns:
 - Names included, if any, possibly empty; 
nullfor "not defined" 
 
- 
withOverrides
public 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.Values do not count ("undefined" meaning thatgetIncluded()returnsnull). So: overriding with "undefined" returns originalValueas-is; overriding an "undefined"Valuereturns overrideValueas-is. 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
 - 
 
 -