Class InterfaceSerializerTypeAdapterFactory

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

    public class InterfaceSerializerTypeAdapterFactory
    extends Object
    implements com.google.gson.TypeAdapterFactory
    GSON type adapter factory for creating type adapters for interfaces.
    Since:
    8.0.0
    Author:
    XIMA Media GmbH
    • Constructor Detail

      • InterfaceSerializerTypeAdapterFactory

        public InterfaceSerializerTypeAdapterFactory()
    • Method Detail

      • create

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