`public class TaskDetailPresenterimplements TaskDetailContract.Presenter {
private final TasksRepositorymTasksRepository;
private final TaskDetailContract.ViewmTaskDetailView;
@Nullable
private StringmTaskId;
public TaskDetailPresenter(@Nullable String taskId,
@NonNull TasksRepository tasksRepository,
@NonNull TaskDetailContract.View taskDetailView) {
mTaskId = taskId;
mTasksRepository =checkNotNull(tasksRepository, "tasksRepository cannot be null!");
mTaskDetailView =checkNotNull(taskDetailView, "taskDetailView cannot be null!");
mTaskDetailView.setPresenter(this);
}
`