-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask.java
More file actions
90 lines (68 loc) · 1.98 KB
/
Task.java
File metadata and controls
90 lines (68 loc) · 1.98 KB
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
81
82
83
84
85
86
87
88
89
90
package taskManager;
import java.util.*;
public class Task {
private int id;
private String title;
private String description;
private Date dueDate;
private String priority;
private String classCode;
private Boolean isFinished;
public Task(int id, String title, String description, Date dueDate, String priority, String classCode, Boolean isFinished){
this.id = id;
this.title = title;
this.description = description;
this.dueDate = dueDate;
this.priority = priority;
this.classCode = classCode;
this.isFinished = isFinished;
}
public int getId(){
return id;
}
public void setId(int id){
this.id = id;
}
public String getTask(){
return title;
}
public void setTask(String title){
this.title = title;
}
public String getDesc(){
return description;
}
public void setDesc(String description){
this.description = description;
}
public Date getdueDate(){
return dueDate;
}
public void setdueDate (Date dueDate){
this.dueDate = dueDate;
}
public String getPriority(){
return priority;
}
public void setPriority(String priority){
this.priority = priority;
}
public String getCode(){
return classCode;
}
public void setCode(String classCode){
this.classCode = classCode;
}
public Boolean getIsFinished(){
return isFinished;
}
public void setIsFinished(Boolean isFinished){
this.isFinished = isFinished;
}
@Override
public String toString() {
return "Task ID: " + id + ", Title: " + title + ", Description: " + description +
", Due Date: " + dueDate + ", Priority: " + priority +
", Class Code: " + classCode + ", Completed: " + isFinished;
}
}