Пример #1
0
  /* Add Subtasks to Main task */
  public void setSubTask(LinkedList<Task> subTaskList) {

    int subTaskSize = 0;
    subTaskSize = subTaskList.size();
    if (subTaskSize == 0) {
      Log.e("PRIME", "Task : UNEXPECTED : subTaskList.size() = 0");
      return;
    } else {
      // Log.i("PRIME", "Task : Adding " + subTaskSize
      //					+ " Subtask to Main Task");
    }

    for (Task subTask : subTaskList) {
      Task result = this.mSubTaskMap.put(subTask.getThreadNo(), subTask);
      if (result != null) {
        Log.e("PRIME", "Task : UNEXPECTED : This task is already mapped " + subTask.getThreadNo());
      }
    }
  }
Пример #2
0
 public Task(Task parentTask) {
   mMaxNo = parentTask.getMaxNo();
 }