RuntimeTypeAdapterFactory < T > function ( Class < ? extends T > arg0 ) { return registerSubtype ( arg0 , arg0 . getSimpleName ( ) ) ; }
registers type identified by its class #getsimplename simplename . labels are case sensitive . concode_field_sep Map<String,Class<?>> labelToSubtype concode_elem_sep Map<Class<?>,String> subtypeToLabel concode_elem_sep String typeFieldName concode_elem_sep Class<?> baseType concode_field_sep RuntimeTypeAdapterFactory<T> of concode_elem_sep RuntimeTypeAdapterFactory<T> of concode_elem_sep TypeAdapter<R> create