Package com.fasterxml.jackson.annotation
Class JacksonInject.Value
java.lang.Object
com.fasterxml.jackson.annotation.JacksonInject.Value
- All Implemented Interfaces:
JacksonAnnotationValue<JacksonInject>,Serializable
- Enclosing class:
- JacksonInject
public static class JacksonInject.Value
extends Object
implements JacksonAnnotationValue<JacksonInject>, Serializable
Helper class used to contain information from a single
JacksonInject
annotation, as well as to provide possible overrides from non-annotation sources.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JacksonInject.Valuestatic JacksonInject.Valueempty()booleanstatic JacksonInject.Valuestatic JacksonInject.Valuefrom(JacksonInject src) getId()inthashCode()booleanhasId()toString()valueFor()Introspection method that may be used to find actual annotation that may be used as the source for value instance.booleanwillUseInput(boolean defaultSetting) withOptional(Boolean optional) withUseInput(Boolean useInput)
-
Field Details
-
EMPTY
-
_id
Id to use to access injected value; if `null`, "default" name, derived from accessor will be used. -
_useInput
-
_optional
-
-
Constructor Details
-
Value
-
-
Method Details
-
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<JacksonInject>- Returns:
- Annotation class for which instances of this value class are created
-
empty
-
construct
-
from
-
forId
-
withId
-
withUseInput
-
withOptional
-
getId
-
getUseInput
-
getOptional
-
hasId
public boolean hasId() -
willUseInput
public boolean willUseInput(boolean defaultSetting) -
toString
-
hashCode
public int hashCode() -
equals
-