JsonAdapterAnnotationTypeAdapterFactory
Date: 2016-11-03

com.google.gson.internal.bind

## Class JsonAdapterAnnotationTypeAdapterFactory

- java.lang.Object
- - com.google.gson.internal.bind.JsonAdapterAnnotationTypeAdapterFactory

- All Implemented Interfaces:
    TypeAdapterFactory

      public final class JsonAdapterAnnotationTypeAdapterFactory
      extends java.lang.Object
      implements TypeAdapterFactory

  Given a type T, looks for the annotation `JsonAdapter` and uses an instance of the specified class as the default type adapter.
  Since:
    2.3

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JsonAdapterAnnotationTypeAdapterFactory(ConstructorConstructor constructorConstructor)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> TypeAdapter<T>` | `create(Gson gson, TypeToken<T> targetType)` Returns a type adapter for `type`, or null if this factory doesn't support `type`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JsonAdapterAnnotationTypeAdapterFactory

          public JsonAdapterAnnotationTypeAdapterFactory(ConstructorConstructor constructorConstructor)

  - ### Method Detail

    - #### create

          public <T> TypeAdapter<T> create(Gson gson,
                                  TypeToken<T> targetType)

      Description copied from interface: `TypeAdapterFactory`
      Returns a type adapter for `type`, or null if this factory doesn't support `type`.
      Specified by:
        `create` in interface `TypeAdapterFactory`