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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface com.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 interface com.google.gson.JsonSerializer<org.mbari.vcr4j.time.Timecode>