Skip to content
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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

AdityaA1998
Copy link
Member

No description provided.

@@ -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

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) {

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

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;

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?

@jeffryhartanto
Copy link

@AdityaA1998
Some comments added. Please close the PR after reading comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants