Created
June 12, 2017 19:27
-
-
Save ha-yi/7c037751fd0c2d7e570bcb5c090151e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| inline fun <reified T:BaseContactor<*>, reified Y:BasePresenter<*>>RecyclerView.loadData(contactor:Class<T>, presenter:Class<Y>) { | |
| val pres = presenter.asSubclass(presenter).getConstructor(Context::class.java, this::class.java).newInstance(this.context, this) | |
| contactor.asSubclass(contactor).getConstructor(presenter).newInstance(pres).execute() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment