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.Value
static JacksonInject.Value
empty()
boolean
static JacksonInject.Value
static JacksonInject.Value
from
(JacksonInject src) getId()
int
hashCode()
boolean
hasId()
toString()
valueFor()
Introspection method that may be used to find actual annotation that may be used as the source for value instance.boolean
willUseInput
(boolean defaultSetting) 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
-
-
Constructor Details
-
Value
-
-
Method Details
-
valueFor
Description copied from interface:JacksonAnnotationValue
Introspection method that may be used to find actual annotation that may be used as the source for value instance.- Specified by:
valueFor
in interfaceJacksonAnnotationValue<JacksonInject>
- Returns:
- Annotation class for which instances of this value class are created
-
empty
-
construct
-
from
-
forId
-
withId
-
withUseInput
-
getId
-
getUseInput
-
hasId
public boolean hasId() -
willUseInput
public boolean willUseInput(boolean defaultSetting) -
toString
-
hashCode
public int hashCode() -
equals
-