- java.lang.Object
-
- com.pragmatickm.task.model.TaskPriority
-
public class TaskPriority extends Object
Tasks may be assigned multiple priorities. One of them must have a zero "after" value. The others must have a non-zero value. The priority that matches the most number of days is used.
-
-
Field Summary
Fields Modifier and Type Field Description static TaskPriority
DEFAULT_TASK_PRIORITY
Some commonly used constant assignments.static List<TaskPriority>
DEFAULT_TASK_PRIORITY_LIST
An unmodifiable list with the default task priority.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DayDuration
getAfter()
static TaskPriority
getInstance(Priority priority, DayDuration after)
Priority
getPriority()
String
toString()
-
-
-
Field Detail
-
DEFAULT_TASK_PRIORITY
public static final TaskPriority DEFAULT_TASK_PRIORITY
Some commonly used constant assignments.
-
DEFAULT_TASK_PRIORITY_LIST
public static final List<TaskPriority> DEFAULT_TASK_PRIORITY_LIST
An unmodifiable list with the default task priority.
-
-
Method Detail
-
getInstance
public static TaskPriority getInstance(Priority priority, DayDuration after)
-
getPriority
public Priority getPriority()
-
getAfter
public DayDuration getAfter()
-
-