Deprecated
as a consequence of DateTimeSerializerBase being deprecated. See corresponding docs for further information.
java.util.Calendar .
As with other time/date types, is configurable to produce timestamps
(standard Java 64-bit timestamp) or textual formats (usually ISO-8601).
| Modifier and Type | Field and Description |
|---|---|
| public static final CalendarSerializer | instance
Deprecated
as a consequence of
CalendarSerializer being deprecated.
|
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected long | _timestamp(Calendar value)
Implements abstract com. |
| public void | serialize(Calendar
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. provider)Implements abstract com. |
| public CalendarSerializer | withFormat(Boolean timestamp, DateFormat customFormat)
Implements abstract com.
Deprecated
as a consequence of
CalendarSerializer being deprecated.
|
| instance | back to summary |
|---|---|
| public static final CalendarSerializer instance
Deprecated as a consequence of | |
| CalendarSerializer | back to summary |
|---|---|
| public CalendarSerializer() | |
| CalendarSerializer | back to summary |
|---|---|
| public CalendarSerializer(Boolean useTimestamp, DateFormat customFormat) | |
| _timestamp | back to summary |
|---|---|
| protected long _timestamp(Calendar value) Implements abstract com.
| |
| serialize | back to summary |
|---|---|
| public void serialize(Calendar value, JsonGenerator g, 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 CalendarSerializer withFormat(Boolean timestamp, DateFormat customFormat) Implements abstract com. Deprecated as a consequence of
| |