java.lang.Object
no.ntnu.idatt.List
- All Implemented Interfaces:
Serializable
List represents list of tasks.
List is a mutable and serializable class.- See Also:
- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetLABEL()voidgetSortedTasks(int sortBy)Returns a sorted list.voidRemoves givenTaskfrom listvoidtoString()
-
Constructor Details
-
List
-
-
Method Details
-
getLABEL
-
getAllTasks
-
getNonCompletedTasks
-
getCompletedTasks
-
getSortedTasks
public void getSortedTasks(int sortBy)Returns a sorted list.- Parameters:
sortBy-intrepresenting sorting type (1 = by date, 2 = by priority, 3 = alphabetically)
-
setTasks
-
addTask
-
remove
Removes givenTaskfrom list- Parameters:
task- The task which should be removed- Throws:
RemoveException- if task is not removed
-
equals
-
toString
-