-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[W8.6b][T09-B3]Aditya Agarwal #964
base: master
Are you sure you want to change the base?
[W8.6b][T09-B3]Aditya Agarwal #964
Conversation
@@ -24,13 +25,15 @@ | |||
|
|||
private final UniquePersonList allPersons; | |||
private final UniqueTagList allTags; // can contain tags not attached to any person | |||
public ArrayList<Tagging> tagging; //Arraylist of tagging records |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good, this is a correct place to put the list based on the UML.. taggingList
might be a better name. Then, you can remove the comment.
@@ -13,7 +14,11 @@ | |||
|
|||
@Override | |||
public CommandResult execute() { | |||
return new CommandResult(MESSAGE_EXIT_ACKNOWEDGEMENT); | |||
StringBuilder listOfTags = new StringBuilder(); | |||
for(Tagging tagging: addressBook.tagging) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coding standard violation. Missing empty spaces.
import seedu.addressbook.data.tag.Tag; | ||
|
||
/** | ||
* Represents whether a tag has been added or remved for a person in the current session |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job for writing the header comment.
|
||
private final Person person; | ||
private final Tag tag; | ||
private boolean isTagRemoved; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using boolean is fine now since this LO requires only two states. What if later you need to capture more than two states?
@AdityaA1998 |
No description provided.