-
Notifications
You must be signed in to change notification settings - Fork 0
/
Column.java
80 lines (69 loc) · 1.78 KB
/
Column.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import java.lang.reflect.Array;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
//Tested by Ben Hendrix
/*
* This class is used to create a column object, which is a list of task objects.
*/
public class Column {
public ArrayList<Task> backlogList() {
ArrayList<Task> backlogList = new ArrayList<Task>();
return backlogList;
}
public ArrayList<Task> todoList() {
ArrayList<Task> todoList = new ArrayList<Task>();
return todoList;
}
public ArrayList<Task> inProgressList() {
ArrayList<Task> inProgressList = new ArrayList<Task>();
return inProgressList;
}
public ArrayList<Task> completedList() {
ArrayList<Task> completedList = new ArrayList<Task>();
return completedList;
}
private String columnName;
private ArrayList<Task> tasks;
/**
* Constructor for the column object
* @param columnName
*/
public Column(String columnName) {
this.columnName = columnName;
this.tasks = new ArrayList<Task>();
}
/**
* @return the column name
*/
public String getColumnName() {
return columnName;
}
/**
* @return the list of tasks
*/
public ArrayList<Task> getTasks() {
return tasks;
}
/**
* Add a task to the column
* @param task
*/
public void addTask(Task task) {
tasks.add(task);
}
/**
* Remove a task from the column
* @param task
*/
public void removeTask(Task task) {
tasks.remove(task);
}
/**
* @return the string representation of the column
*/
@Override
public String toString() {
return "Column [columnName=" + columnName + "]";
}
}