References Deprecated
JodaDateSerializerBase is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isEmpty(SerializerProvider prov, Duration value)
Overrides com. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). |
| public void | serialize(Duration
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content gen, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider)Implements abstract com. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| public DurationSerializer | withFormat(JacksonJodaDateFormat formatter, int shapeOverride)
Implements abstract com.
References Deprecated
DurationSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| DurationSerializer | back to summary |
|---|---|
| public DurationSerializer() | |
| DurationSerializer | back to summary |
|---|---|
| public DurationSerializer(JacksonJodaDateFormat format) | |
| DurationSerializer | back to summary |
|---|---|
| public DurationSerializer(JacksonJodaDateFormat formatter, int shapeOverride) | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty(SerializerProvider prov, Duration value) Overrides com. Doc from com. Method called to check whether given serializable value is considered "empty" value (for purposes of suppressing serialization of empty values). Default implementation will consider only null values to be empty. Note replaces
| |
| serialize | back to summary |
|---|---|
| public void serialize(Duration value, JsonGenerator gen, SerializerProvider provider) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| withFormat | back to summary |
|---|---|
| public DurationSerializer withFormat(JacksonJodaDateFormat formatter, int shapeOverride) Implements abstract com. References Deprecated
See corresponding docs for further information.
| |