Class ZonedDateTimeAdapter

java.lang.Object
net.thucydides.core.reports.json.gson.ZonedDateTimeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<java.time.ZonedDateTime>, com.google.gson.JsonSerializer<java.time.ZonedDateTime>

public class ZonedDateTimeAdapter
extends java.lang.Object
implements com.google.gson.JsonDeserializer<java.time.ZonedDateTime>, com.google.gson.JsonSerializer<java.time.ZonedDateTime>
  • Constructor Summary

    Constructors 
    Constructor Description
    ZonedDateTimeAdapter()  
  • Method Summary

    Modifier and Type Method Description
    java.time.ZonedDateTime deserialize​(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context)  
    com.google.gson.JsonElement serialize​(java.time.ZonedDateTime src, java.lang.reflect.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

    • ZonedDateTimeAdapter

      public ZonedDateTimeAdapter()
  • Method Details

    • deserialize

      public java.time.ZonedDateTime deserialize​(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<java.time.ZonedDateTime>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize​(java.time.ZonedDateTime src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<java.time.ZonedDateTime>