Skip to content

Commit

Permalink
My collate and comments for display part
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermyn Lai committed Nov 5, 2015
1 parent caa57f5 commit 0a72f5b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Chronos/src/application/DisplayCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ public class DisplayCommand extends Command {
public DisplayCommand(String content) {
super(content);
}


//@@author A0125424N
/**
* This method executes the display command. It can choose to display all
* the items or selected ones.
*/
@Override
public Feedback execute() {
ArrayList<Task> filteredTasks = new ArrayList<Task>();
Expand All @@ -43,7 +48,13 @@ public Feedback execute() {
return feedback;
}

//TODO: Check for correctness
//@@author A0125424N
/**
* This method display only selected items.
* @param condition
* @param criteria input string from user
* @return filteredTasks arraylist with the selected tasks
*/
private ArrayList<Task> displaySelectedItems(String condition, String[] criteria) {

for(int index=0; index<criteria.length; index++) {
Expand Down

0 comments on commit 0a72f5b

Please sign in to comment.