Package | Description |
---|---|
com.google.gson.internal |
Do NOT use any class in this package as they are meant for internal use in Gson.
|
com.google.gson.internal.bind |
Modifier and Type | Method and Description |
---|---|
<T> ObjectConstructor<T> |
ConstructorConstructor.get(TypeToken<T> typeToken) |
private <T> ObjectConstructor<T> |
ConstructorConstructor.newDefaultConstructor(java.lang.Class<? super T> rawType) |
private <T> ObjectConstructor<T> |
ConstructorConstructor.newDefaultImplementationConstructor(java.lang.reflect.Type type,
java.lang.Class<? super T> rawType)
Constructors for common interface types like Map and List and their
subtypes.
|
private <T> ObjectConstructor<T> |
ConstructorConstructor.newUnsafeAllocator(java.lang.reflect.Type type,
java.lang.Class<? super T> rawType) |
Modifier and Type | Field and Description |
---|---|
private ObjectConstructor<? extends java.util.Map<K,V>> |
MapTypeAdapterFactory.Adapter.constructor |
private ObjectConstructor<? extends java.util.Collection<E>> |
CollectionTypeAdapterFactory.Adapter.constructor |
private ObjectConstructor<T> |
ReflectiveTypeAdapterFactory.Adapter.constructor |
Constructor and Description |
---|
Adapter(Gson context,
java.lang.reflect.Type elementType,
TypeAdapter<E> elementTypeAdapter,
ObjectConstructor<? extends java.util.Collection<E>> constructor) |
Adapter(Gson context,
java.lang.reflect.Type keyType,
TypeAdapter<K> keyTypeAdapter,
java.lang.reflect.Type valueType,
TypeAdapter<V> valueTypeAdapter,
ObjectConstructor<? extends java.util.Map<K,V>> constructor) |
Adapter(ObjectConstructor<T> constructor,
java.util.Map<java.lang.String,ReflectiveTypeAdapterFactory.BoundField> boundFields) |