Uses of Class
com.google.gson.typeadapters.RuntimeTypeAdapterFactory
Packages that use RuntimeTypeAdapterFactory
-
Uses of RuntimeTypeAdapterFactory in com.google.gson.typeadapters
Methods in com.google.gson.typeadapters that return RuntimeTypeAdapterFactoryModifier and TypeMethodDescriptionstatic <T> RuntimeTypeAdapterFactory
<T> Creates a new runtime type adapter forbaseType
using"type"
as the type field name.static <T> RuntimeTypeAdapterFactory
<T> Creates a new runtime type adapter using forbaseType
usingtypeFieldName
as the type field name.static <T> RuntimeTypeAdapterFactory
<T> Creates a new runtime type adapter using forbaseType
usingtypeFieldName
as the type field name.RuntimeTypeAdapterFactory.recognizeSubtypes()
Ensures that this factory will handle not just the givenbaseType
, but any subtype of that type.RuntimeTypeAdapterFactory.registerSubtype
(Class<? extends T> type) Registerstype
identified by itssimple name
.RuntimeTypeAdapterFactory.registerSubtype
(Class<? extends T> type, String label) Registerstype
identified bylabel
.