首页 \ 问答 \ Google Drive Java API V2与V3(Google Drive Java API V2 vs V3)

Google Drive Java API V2与V3(Google Drive Java API V2 vs V3)

我想开发一个新的java应用程序,它在我们的谷歌域中使用谷歌驱动器。 有版本2和版本3.我在另一个应用程序上使用版本2。

v2和v3之间的主要区别在哪里? 我可以毫无问题地使用v2吗?


I want to develop a new java application which uses google drive within our google domain. There are version 2 and version 3. I used version 2 on a another application.

Where are the main differances between v2 and v3? can i use v2 without any problems?


原文:https://stackoverflow.com/questions/40607308
更新时间:2023-09-15 22:09

最满意答案

混凝土类必须......更具体一点。

public class MVPPresenter<M, V extends IMVPView<MVPPresenter<M,V>>>
  implements IMVPPresenter<M, V> {

  protected void setView(V view) {
    view.setPresenter(this); // No more error on this line
  }
}

Concrete classes must be … well a bit more concrete.

public class MVPPresenter<M, V extends IMVPView<MVPPresenter<M,V>>>
  implements IMVPPresenter<M, V> {

  protected void setView(V view) {
    view.setPresenter(this); // No more error on this line
  }
}

相关问答

更多