java.time.Instant and
other Temporal subtypes.
| Modifier and Type | Field and Description |
|---|---|
| private final DateTimeFormatter | |
| private final ToLongFunction | |
| private final ToLongFunction | |
| private final ToIntFunction |
| Access | Constructor and Description |
|---|---|
| protected | InstantSerializerBase(Class<T> supportedType, ToLongFunction<T> getEpochMillis, ToLongFunction<T> getEpochSeconds, ToIntFunction<T> getNanoseconds, DateTimeFormatter defaultFormat)
|
| protected | InstantSerializerBase(InstantSerializerBase<T> base, DateTimeFormatter dtf, Boolean useTimestamp, Boolean useNanoseconds, JsonFormat.
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected String | |
| protected JsonToken | serializationShape(SerializationContext ctxt)
Implements abstract tools. Overridable helper method used from |
| public void | serialize(T value, JsonGenerator generator, SerializationContext ctxt)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| protected abstract JSR310FormattedSerializerBase | withFormat(DateTimeFormatter dtf, Boolean useTimestamp, JsonFormat.
Implements abstract tools.
|
| defaultFormat | back to summary |
|---|---|
| private final DateTimeFormatter defaultFormat | |
| getEpochMillis | back to summary |
|---|---|
| private final ToLongFunction<T> getEpochMillis | |
| getEpochSeconds | back to summary |
|---|---|
| private final ToLongFunction<T> getEpochSeconds | |
| getNanoseconds | back to summary |
|---|---|
| private final ToIntFunction<T> getNanoseconds | |
| InstantSerializerBase | back to summary |
|---|---|
| protected InstantSerializerBase(Class<T> supportedType, ToLongFunction<T> getEpochMillis, ToLongFunction<T> getEpochSeconds, ToIntFunction<T> getNanoseconds, DateTimeFormatter defaultFormat) | |
| InstantSerializerBase | back to summary |
|---|---|
| protected InstantSerializerBase(InstantSerializerBase<T> base, DateTimeFormatter dtf, Boolean useTimestamp, Boolean useNanoseconds, JsonFormat. | |
| _acceptTimestampVisitor | back to summary |
|---|---|
| protected void _acceptTimestampVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) Overrides tools.
| |
| formatValue | back to summary |
|---|---|
| protected String formatValue(T value, SerializationContext ctxt) | |
| serializationShape | back to summary |
|---|---|
| protected JsonToken serializationShape(SerializationContext ctxt) Implements abstract tools. Doc from tools. Overridable helper method used from
| |
| serialize | back to summary |
|---|---|
| public void serialize(T value, JsonGenerator generator, SerializationContext ctxt) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |
| withFormat | back to summary |
|---|---|
| protected abstract JSR310FormattedSerializerBase Implements abstract tools.
| |