Class BlockAdapterFactory

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

    public abstract class BlockAdapterFactory
    extends java.lang.Object
    implements com.google.gson.TypeAdapterFactory
    Class used to automatically create Gson type adapters for AutoValue classes. Note that you need to provide static factory method in your AutoValue class.
    
       public static TypeAdapter<Block> typeAdapter(Gson gson) {
         return new AutoValue_Block.GsonTypeAdapter(gson);
       }
     
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.gson.TypeAdapterFactory create()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.gson.TypeAdapterFactory

        create
    • Constructor Detail

      • BlockAdapterFactory

        public BlockAdapterFactory()
    • Method Detail

      • create

        public static com.google.gson.TypeAdapterFactory create()