Class TimecodeConverter
java.lang.Object
org.mbari.vars.annosaurus.sdk.r1.etc.gson.TimecodeConverter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<org.mbari.vcr4j.time.Timecode>
,com.google.gson.JsonSerializer<org.mbari.vcr4j.time.Timecode>
public class TimecodeConverter
extends Object
implements com.google.gson.JsonSerializer<org.mbari.vcr4j.time.Timecode>, com.google.gson.JsonDeserializer<org.mbari.vcr4j.time.Timecode>
- Since:
- 2016-07-11T16:32:00
- Author:
- Brian Schlining
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.mbari.vcr4j.time.Timecode
deserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(org.mbari.vcr4j.time.Timecode src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
TimecodeConverter
public TimecodeConverter()
-
-
Method Details
-
deserialize
public org.mbari.vcr4j.time.Timecode deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<org.mbari.vcr4j.time.Timecode>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(org.mbari.vcr4j.time.Timecode src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<org.mbari.vcr4j.time.Timecode>
-