class TimeStringSerializer extends StdScalarSerializer[Time] with ContextualSerializer
A Jackson JsonSerializer for com.twitter.util.Time.
- Alphabetic
- By Inheritance
- TimeStringSerializer
- ContextualSerializer
- StdScalarSerializer
- StdSerializer
- Serializable
- SchemaAware
- JsonSerializer
- JsonFormatVisitable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
TimeStringSerializer(timeFormat: TimeFormat)
- timeFormat
the configured com.twitter.util.TimeFormat for this serializer.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
acceptJsonFormatVisitor(arg0: JsonFormatVisitorWrapper, arg1: JavaType): Unit
- Definition Classes
- StdScalarSerializer → StdSerializer → JsonSerializer → JsonFormatVisitable
- Annotations
- @throws( ... )
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createContextual(provider: SerializerProvider, property: BeanProperty): JsonSerializer[_]
This method allows extracting the JsonFormat annotation and create a TimeFormat based on the specifications provided in the annotation.
This method allows extracting the JsonFormat annotation and create a TimeFormat based on the specifications provided in the annotation. The implementation follows the Jackson's java8 & joda-time versions
- provider
Serialization provider to access configuration, additional deserializers that may be needed by this deserializer
- property
Method, field or constructor parameter that represents the property (and is used to assign serialized value). Should be available; but there may be cases where caller can not provide it and null is passed instead (in which case impls usually pass 'this' serializer as is)
- returns
Serializer to use for serializing values of specified property; may be this instance or a new instance.
- Definition Classes
- TimeStringSerializer → ContextualSerializer
- See also
https://github.com/FasterXML/jackson-modules-java8/blob/master/datetime/src/main/java/com/fasterxml/jackson/datatype/jsr310/ser/JSR310FormattedSerializerBase.java#L114
-
def
createSchemaNode(arg0: String, arg1: Boolean): ObjectNode
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
-
def
createSchemaNode(arg0: String): ObjectNode
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
findAnnotatedContentSerializer(arg0: SerializerProvider, arg1: BeanProperty): JsonSerializer[_]
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
def
findContextualConvertingSerializer(arg0: SerializerProvider, arg1: BeanProperty, arg2: JsonSerializer[_]): JsonSerializer[_]
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
def
findFormatFeature(arg0: SerializerProvider, arg1: BeanProperty, arg2: Class[_], arg3: Feature): Boolean
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
-
def
findFormatOverrides(arg0: SerializerProvider, arg1: BeanProperty, arg2: Class[_]): Value
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
-
def
findIncludeOverrides(arg0: SerializerProvider, arg1: BeanProperty, arg2: Class[_]): Value
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
-
def
findPropertyFilter(arg0: SerializerProvider, arg1: Any, arg2: Any): PropertyFilter
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDelegatee(): JsonSerializer[_]
- Definition Classes
- JsonSerializer
-
def
getSchema(arg0: SerializerProvider, arg1: Type): JsonNode
- Definition Classes
- StdScalarSerializer → StdSerializer → SchemaAware
- Annotations
- @throws( ... )
-
def
getSchema(arg0: SerializerProvider, arg1: Type, arg2: Boolean): JsonNode
- Definition Classes
- StdSerializer → SchemaAware
- Annotations
- @throws( ... )
-
def
handledType(): Class[Time]
- Definition Classes
- StdSerializer → JsonSerializer
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isDefaultSerializer(arg0: JsonSerializer[_]): Boolean
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
-
def
isEmpty(arg0: SerializerProvider, arg1: Time): Boolean
- Definition Classes
- JsonSerializer
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isUnwrappingSerializer(): Boolean
- Definition Classes
- JsonSerializer
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
properties(): Iterator[PropertyWriter]
- Definition Classes
- JsonSerializer
-
def
replaceDelegatee(arg0: JsonSerializer[_]): JsonSerializer[Time]
- Definition Classes
- JsonSerializer
-
def
serialize(value: Time, jgen: JsonGenerator, provider: SerializerProvider): Unit
- Definition Classes
- TimeStringSerializer → StdSerializer → JsonSerializer
-
def
serializeWithType(arg0: Time, arg1: JsonGenerator, arg2: SerializerProvider, arg3: TypeSerializer): Unit
- Definition Classes
- StdScalarSerializer → JsonSerializer
- Annotations
- @throws( classOf[java.io.IOException] )
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unwrappingSerializer(arg0: NameTransformer): JsonSerializer[Time]
- Definition Classes
- JsonSerializer
-
def
usesObjectId(): Boolean
- Definition Classes
- JsonSerializer
-
def
visitArrayFormat(arg0: JsonFormatVisitorWrapper, arg1: JavaType, arg2: JsonFormatTypes): Unit
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
def
visitArrayFormat(arg0: JsonFormatVisitorWrapper, arg1: JavaType, arg2: JsonSerializer[_], arg3: JavaType): Unit
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
def
visitFloatFormat(arg0: JsonFormatVisitorWrapper, arg1: JavaType, arg2: NumberType): Unit
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
def
visitIntFormat(arg0: JsonFormatVisitorWrapper, arg1: JavaType, arg2: NumberType, arg3: JsonValueFormat): Unit
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
def
visitIntFormat(arg0: JsonFormatVisitorWrapper, arg1: JavaType, arg2: NumberType): Unit
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
def
visitStringFormat(arg0: JsonFormatVisitorWrapper, arg1: JavaType, arg2: JsonValueFormat): Unit
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
def
visitStringFormat(arg0: JsonFormatVisitorWrapper, arg1: JavaType): Unit
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withFilterId(arg0: Any): JsonSerializer[_]
- Definition Classes
- JsonSerializer
-
def
wrapAndThrow(arg0: SerializerProvider, arg1: Throwable, arg2: Any, arg3: Int): Unit
- Definition Classes
- StdSerializer
- Annotations
- @throws( classOf[java.io.IOException] )
-
def
wrapAndThrow(arg0: SerializerProvider, arg1: Throwable, arg2: Any, arg3: String): Unit
- Definition Classes
- StdSerializer
- Annotations
- @throws( classOf[java.io.IOException] )
Deprecated Value Members
-
def
findConvertingContentSerializer(arg0: SerializerProvider, arg1: BeanProperty, arg2: JsonSerializer[_]): JsonSerializer[_]
- Attributes
- protected[std]
- Definition Classes
- StdSerializer
- Annotations
- @throws( ... ) @Deprecated
- Deprecated
-
def
isEmpty(arg0: Time): Boolean
- Definition Classes
- JsonSerializer
- Annotations
- @Deprecated
- Deprecated