Class FallbackTypeAdapterFactory

java.lang.Object
com.microsoft.graph.serializer.FallbackTypeAdapterFactory
All Implemented Interfaces:
com.google.gson.TypeAdapterFactory

public final class FallbackTypeAdapterFactory extends Object implements com.google.gson.TypeAdapterFactory
Handles serialization/deserialization for special types (especially of fields which are not caught by registering a type adapter).
  • Constructor Details

    • FallbackTypeAdapterFactory

      public FallbackTypeAdapterFactory(@Nonnull ILogger logger)
      Instantiates a new type adapter factory
      Parameters:
      logger - logger to use for the factory
  • Method Details

    • create

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