这是我的Java类。如何在Kotlin上写它?
public class TargetTitleEntryController extends BaseController {
public interface TargetTitleEntryControllerListener {
void onTitlePicked(String option);
}
public <T extends Controller & TargetTitleEntryControllerListener> TargetTitleEntryController(T targetController) {
setTargetController(targetController);
}
public TargetTitleEntryController() { }
}
答案 0 :(得分:0)
我是这样class SecondController<T> : Controller() where T: Controller, T: SecondController.SecondControllerListener