Package de.sebastianbenz.task.util

Source Code of de.sebastianbenz.task.util.Tasks

package de.sebastianbenz.task.util;

import de.sebastianbenz.task.Content;
import de.sebastianbenz.task.Task;
import de.sebastianbenz.task.TaskFactory;

public class Tasks {

  public static Task newTask(String text) {
    Task task = newTask();
    task.setText(text);
    return task;
  }

  public static Task newTask() {
    return TaskFactory.eINSTANCE.createTask();
  }

  public static Content newTaskWithIntend(String intend) {
    Task task = newTask();
    task.setIntend(intend);
    return task;
  }
}
TOP

Related Classes of de.sebastianbenz.task.util.Tasks

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.