Skip to content

Commit

Permalink
Touchup javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
koh-jx committed Sep 16, 2021
1 parent b957ff3 commit 129fb33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/main/java/duke/command/CommandSort.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import task.TaskList;

/**
* Command to sort the task list
* Command to sort the task list.
*/
public class CommandSort extends Command {

Expand All @@ -23,14 +23,15 @@ public class CommandSort extends Command {
* @param sortFilters Un-parsed list of filters.
*/
public CommandSort(TaskList taskList, String sortFilters) {
this.commandName = "sort /name /date";
this.commandName = "sort";
this.description = "Sorts list based on arguments provided. Having no arguments would default to"
+ " sorting by /name. If there is more than 1 argument, the list will be sorted by the first."
+ "followed by the second, etc...";
this.arguments = new String[]{
"/name Optional argument to sort by name",
"/date Optional argument to sort by date",
"/done Optional argument to sort by completion status"
"/done Optional argument to sort by completion status",
"/added Optional argument to sort by added-by date"
};

this.taskList = taskList;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/task/TaskDeadline.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public TaskDeadline(String description, LocalDate date, String time, boolean don
}

/**
* Return string representation of Deadline.
* Returns string representation of Deadline.
*
* @return Deadline display.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/task/TaskEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public TaskEvent(String description, LocalDate date, String time, boolean done,
}

/**
* Return string representation of Event.
* Returns string representation of Event.
*
* @return Event display.
*/
Expand Down

0 comments on commit 129fb33

Please sign in to comment.