Uses of Interface
com.google.gson.internal.ObjectConstructor
Packages that use ObjectConstructor
Package
Description
Do NOT use any class in this package as they are meant for internal use in Gson.
-
Uses of ObjectConstructor in com.google.gson.internal
Classes in com.google.gson.internal that implement ObjectConstructorModifier and TypeClassDescriptionprivate static final classprivate static final classObjectConstructorwhich always throws an exception.Methods in com.google.gson.internal that return ObjectConstructorModifier and TypeMethodDescription<T> ObjectConstructor<T>CallsConstructorConstructor.get(TypeToken, boolean), and allows usage of JDK Unsafe.<T> ObjectConstructor<T>Retrieves an object constructor for the given type.private static ObjectConstructor<? extends Collection<?>>ConstructorConstructor.newCollectionConstructor(Class<?> rawType) private static <T> ObjectConstructor<T>ConstructorConstructor.newDefaultConstructor(Class<? super T> rawType, ReflectionAccessFilter.FilterResult filterResult) private static <T> ObjectConstructor<T>ConstructorConstructor.newDefaultImplementationConstructor(Type type, Class<? super T> rawType) Constructors for common interface types like Map and List and their subtypes.private static ObjectConstructor<? extends Map<?,Object>> ConstructorConstructor.newMapConstructor(Type type, Class<?> rawType) private static <T> ObjectConstructor<T>ConstructorConstructor.newSpecialCollectionConstructor(Type type, Class<? super T> rawType) Creates constructors for special JDK collection types which do not have a public no-args constructor.private <T> ObjectConstructor<T>ConstructorConstructor.newUnsafeAllocator(Class<? super T> rawType) -
Uses of ObjectConstructor in com.google.gson.internal.bind
Fields in com.google.gson.internal.bind declared as ObjectConstructorModifier and TypeFieldDescriptionprivate final ObjectConstructor<? extends Collection<E>>CollectionTypeAdapterFactory.Adapter.constructorprivate final ObjectConstructor<? extends Map<K,V>> MapTypeAdapterFactory.Adapter.constructorprivate final ObjectConstructor<T>ReflectiveTypeAdapterFactory.FieldReflectionAdapter.constructorConstructors in com.google.gson.internal.bind with parameters of type ObjectConstructorModifierConstructorDescription(package private)Adapter(TypeAdapter<E> elementTypeAdapter, ObjectConstructor<? extends Collection<E>> constructor) (package private)Adapter(TypeAdapter<K> keyTypeAdapter, TypeAdapter<V> valueTypeAdapter, ObjectConstructor<? extends Map<K, V>> constructor) (package private)FieldReflectionAdapter(ObjectConstructor<T> constructor, ReflectiveTypeAdapterFactory.FieldsData fieldsData)