Class UlidTypeAdapter

java.lang.Object
io.datarouter.gson.serializer.UlidTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<io.datarouter.types.Ulid>, com.google.gson.JsonSerializer<io.datarouter.types.Ulid>

public class UlidTypeAdapter extends Object implements com.google.gson.JsonSerializer<io.datarouter.types.Ulid>, com.google.gson.JsonDeserializer<io.datarouter.types.Ulid>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.datarouter.types.Ulid
    deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
     
    com.google.gson.JsonElement
    serialize(io.datarouter.types.Ulid 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

    • UlidTypeAdapter

      public UlidTypeAdapter()
  • Method Details

    • deserialize

      public io.datarouter.types.Ulid 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<io.datarouter.types.Ulid>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(io.datarouter.types.Ulid src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<io.datarouter.types.Ulid>