-
Notifications
You must be signed in to change notification settings - Fork 125
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
[T3A3][W13-A3]Marianne Quek #1082
base: master
Are you sure you want to change the base?
Conversation
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.
@marianne121 Some comments added. Please close the PR after reading comments.
@@ -38,22 +53,22 @@ public static boolean isValidAddress(String test) { | |||
|
|||
@Override | |||
public String toString() { | |||
return value; | |||
return block.getBlock() + ", " + street.getStreet() + ", " + unit.getUnit() + ", " + postalCode.getPostalCode(); | |||
} |
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.
Take note of magic strings used.
@@ -0,0 +1,13 @@ | |||
package seedu.addressbook.data.person; | |||
|
|||
public class Block { |
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.
Remember to include header comments for these classes to tell developments how to use these classes.
public String getFeedbackToUser() { | ||
return feedbackToUser; | ||
} | ||
|
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.
Is this for T3A2? Try not to include multiple different activities in a PR unless stated.
list | ||
|
||
# should not allow adding duplicate persons | ||
add Esther Potato p/555555 e/[email protected] pa/555, epsilon street t/tubers t/starchy | ||
add Esther Potato p/555555 e/[email protected] pa/123, 555 epsilon street, #123, 123456 t/tubers t/starchy | ||
|
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 to see the tests being updated.
|
||
private final UniqueTagList tags; | ||
private static int nextSeqNo = 0; |
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.
Is this T4A2? This is abit confusing.
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.
Try to cherry pick and submit if you have multiple activities done. Else you can do them in separate branches to avoid sending in multiple activities in a single PR.
|| (other instanceof Address // instanceof handles nulls | ||
&& this.value.equals(((Address) other).value)); // state check | ||
|| (other instanceof Address // instance of handles nulls | ||
&& this.toString().equals(((Address) other).toString())); // state check | ||
} |
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.
How about using each smaller classes for their specific comparisons?
No description provided.