Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于自定义数据的优化建议 #204

Open
xaEHu opened this issue Dec 4, 2020 · 1 comment
Open

关于自定义数据的优化建议 #204

xaEHu opened this issue Dec 4, 2020 · 1 comment

Comments

@xaEHu
Copy link

xaEHu commented Dec 4, 2020

你好,城市数据是通过后台接口返回的,格式和库中的CustomCityData类似,多了几个字段。但是要用该库提供的设置数据源的方法只能通过for循环copy数据值到CustomCityData类中,这样的设计感觉还能优化,是否可以在设置数据源的时候设置一个继承CustomCityData的对象。即CustomConfig.Builder().setCityData(List<? extends CustomCityData)这样?

@crazyandcoder
Copy link
Owner

非常感谢你的建议,下期会考虑这个功能~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants