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!
Do I have to use an array? Lists and the like can also be substituted