Class TBaseTypeAdapterFactory

  • All Implemented Interfaces:
    com.google.gson.TypeAdapterFactory

    public class TBaseTypeAdapterFactory
    extends java.lang.Object
    implements com.google.gson.TypeAdapterFactory
    Special handling of TBase message serialization and deserialization. This is to support for inline Thrift fields in Java class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> com.google.gson.TypeAdapter<T> create​(com.google.gson.Gson gson, com.google.gson.reflect.TypeToken<T> typeToken)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TBaseTypeAdapterFactory

        public TBaseTypeAdapterFactory()
    • Method Detail

      • create

        public <T> com.google.gson.TypeAdapter<T> create​(com.google.gson.Gson gson,
                                                         com.google.gson.reflect.TypeToken<T> typeToken)
        Specified by:
        create in interface com.google.gson.TypeAdapterFactory