Should we use interface or concrete class for gson TypeToken type parameter?

前端 未结 0 580
有刺的猬
有刺的猬 2021-01-28 05:40

I was wondering, when we are using gson TypeToken to produce List, should we be using

new TypeToken>() {}         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题