InterfaceTypeAdapter

com.anywherecommerce.android.sdk.util

Class InterfaceTypeAdapter

  • java.lang.Object

  • com.anywherecommerce.android.sdk.util.InterfaceTypeAdapter

  • public class <span class="typeNameLabel">InterfaceTypeAdapter<T></span>
    extends java.lang.Object
    

    Created by ankit on 7/2/18.

Constructor Summary

  Constructor and Description`<span class="memberNameLink">

InterfaceTypeAdapter()`

Method Summary

  Modifier and TypeMethod and Description`

T````

deserialize(JsonElement elem,
java.lang.reflect.Type interfaceType,
JsonDeserializationContext context)
`` JsonElement````

serialize(

T object,
java.lang.reflect.Type interfaceType,
JsonSerializationContext context)
```

Methods inherited from class java.lang.Object

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

Constructor Detail

InterfaceTypeAdapter

        `public InterfaceTypeAdapter()`

Method Detail

serialize

        ```
        public JsonElement serialize(

T object,
java.lang.reflect.Type interfaceType,
JsonSerializationContext context)
```

deserialize

        ```
        public 

T deserialize(JsonElement elem,
java.lang.reflect.Type interfaceType,
JsonDeserializationContext context)
throws JsonParseException
`` Throws:JsonParseException`