References Deprecated
DateTimeSerializerBase is deprecated or references (maybe indirectly) at least one deprecated element.
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
References Deprecated
CalendarSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| 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. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| public CalendarSerializer | withFormat(Boolean timestamp, DateFormat customFormat)
Implements abstract com.
References Deprecated
CalendarSerializer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| instance | back to summary |
|---|---|
| public static final CalendarSerializer instance
References Deprecated
See corresponding docs for further information. | |
| 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. References Deprecated
See corresponding docs for further information.
| |