android - java generics do not support arrays, so is there any convenient way for RxJava's Map collection to define and obtain a string of common parent class collection data?
PHP中文网
PHP中文网 2017-05-16 13:33:04
0
1
544

I am using just to send the obtained data (json), and then process the obtained data through map and convert it into a map, and then subscribe,
In the actual process, I found that there are many similar operations, so I want to encapsulate them. I want to use generics for the target collection data obtained in map To stipulate,
But in the process of converting json data to a collection, an array of class objects is needed, and arrays do not support generics. So what is the solution for brothers who encounter similar problems? How to deal with it? Thanks!

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!