public class DateSerializer extends Object implements JSONSerializer<Date>
Constructor and Description |
---|
DateSerializer() |
Modifier and Type | Method and Description |
---|---|
Date |
deserialize(Type type,
elemental.json.JsonValue jsonValue,
ConnectorTracker connectorTracker)
Creates and deserializes an object received from the client.
|
elemental.json.JsonValue |
serialize(Date value,
ConnectorTracker connectorTracker)
Serialize the given object into JSON.
|
public Date deserialize(Type type, elemental.json.JsonValue jsonValue, ConnectorTracker connectorTracker)
JSONSerializer
JSONSerializer.serialize(Object, ConnectorTracker)
and also
with the client side com.vaadin.client.communication.JSONSerializer.deserialize
in interface JSONSerializer<Date>
type
- The expected return typejsonValue
- the value from the JSONconnectorTracker
- the connector tracker instance for the UIpublic elemental.json.JsonValue serialize(Date value, ConnectorTracker connectorTracker)
JSONSerializer
JSONSerializer.deserialize(Type, JsonValue, ConnectorTracker)
and the client
side com.vaadin.client.communication.JSONSerializerserialize
in interface JSONSerializer<Date>
value
- The object to serializeconnectorTracker
- The connector tracker instance for the UICopyright © 2022 Vaadin Ltd. All rights reserved.