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 forbaseTypeusing"type"as the type field name.static <T> RuntimeTypeAdapterFactory<T>Creates a new runtime type adapter using forbaseTypeusingtypeFieldNameas the type field name.RuntimeTypeAdapterFactory.registerSubtype(Class<? extends T> type) Registerstypeidentified by itssimple name.RuntimeTypeAdapterFactory.registerSubtype(Class<? extends T> type, String label) Registerstypeidentified bylabel.