forked from CS2113-AY1819S1-W13-3/main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Milestone.java
34 lines (29 loc) · 933 Bytes
/
Milestone.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
package seedu.address.model.task;
//@@author JeremyInElysium
/**
* Represents a Milestone for any Task in the TaskBook
*/
public class Milestone extends Task {
//private final String title;
//private final String milestone_description;
private final String rank;
public Milestone(String title, String milestoneDescription, String rank) {
super(title, milestoneDescription, new PriorityLevel("high"));
//this.title = title;
//this.milestoneDescription = milestoneDescription;
this.rank = rank;
}
public String getRank() {
return rank;
}
@Override
public String toString() {
final StringBuilder builder = new StringBuilder();
builder.append(getTitle())
.append(" : ")
.append(getDescription())
.append(" | ")
.append(getRank());
return builder.toString();
}
}