我想删除重复的代码,所以我想创建一个简单的MVP基本视图控制器,它将把模型、视图和演示者类型联系在一起,并自动连接它们,例如:其中,我的模型和视图是空协议:protocol MvpView: class {} // class is needed for weak property
主持人看起来是这样的:
代码等价的内容感到非常沮丧: private WeakReference<MvpViewBasePresenter> basePresenterWeakReference;
public BaseApiSubscriber(BasePresenter basePresenter, MvpView= new WeakReference<>(mvpView</e
prohibits the use of 'public abstract fun onAttachView(mvpView: V!)BasePresenterImpl<V extends BaseMvpView> implements BasePresenter<V> {
public V mvpViewOverride publ