Package com.fasterxml.jackson.annotation
Class JacksonInject.Value
- java.lang.Object
-
- com.fasterxml.jackson.annotation.JacksonInject.Value
-
- All Implemented Interfaces:
JacksonAnnotationValue<JacksonInject>
,java.io.Serializable
- Enclosing class:
- JacksonInject
public static class JacksonInject.Value extends java.lang.Object implements JacksonAnnotationValue<JacksonInject>, java.io.Serializable
Helper class used to contain information from a singleJacksonInject
annotation, as well as to provide possible overrides from non-annotation sources.- Since:
- 2.9
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JacksonInject.Value
construct(java.lang.Object id, java.lang.Boolean useInput)
static JacksonInject.Value
empty()
boolean
equals(java.lang.Object o)
static JacksonInject.Value
forId(java.lang.Object id)
static JacksonInject.Value
from(JacksonInject src)
java.lang.Object
getId()
java.lang.Boolean
getUseInput()
int
hashCode()
boolean
hasId()
java.lang.String
toString()
java.lang.Class<JacksonInject>
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)
JacksonInject.Value
withId(java.lang.Object id)
JacksonInject.Value
withUseInput(java.lang.Boolean useInput)
-
-
-
Method Detail
-
valueFor
public java.lang.Class<JacksonInject> 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
public static JacksonInject.Value empty()
-
construct
public static JacksonInject.Value construct(java.lang.Object id, java.lang.Boolean useInput)
-
from
public static JacksonInject.Value from(JacksonInject src)
-
forId
public static JacksonInject.Value forId(java.lang.Object id)
-
withId
public JacksonInject.Value withId(java.lang.Object id)
-
withUseInput
public JacksonInject.Value withUseInput(java.lang.Boolean useInput)
-
getId
public java.lang.Object getId()
-
getUseInput
public java.lang.Boolean getUseInput()
-
hasId
public boolean hasId()
-
willUseInput
public boolean willUseInput(boolean defaultSetting)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-