{"action":"created","comment":{"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments/78122947","id":78122947,"diff_hunk":"@@ -0,0 +1,56 @@\n+package seedu.addressbook.data.person;\n+\n+import seedu.addressbook.data.exception.IllegalValueException;\n+\n+/**\n+ * Represents a Person's contact in the address book.\n+ * Guarantees: immutable; \n+ */\n+public class Contact {\n+\tpublic static final String CONTACT_VALIDATION_REGEX = \".+\";\n+\n+\tpublic final String value;\n+\tprivate boolean isPrivate;\n+\n+\t/**\n+\t * Validates given contact.\n+\t *\n+\t * @throws IllegalValueException if given contact string is invalid.\n+\t */\n+\tpublic Contact(String contact, boolean isPrivate, String constraints) throws IllegalValueException {\n+\t\tthis.isPrivate = isPrivate;\n+\t\tcontact = contact.trim();\n+\t\tif (!isValidContact(contact)) {\n+\t\t\tthrow new IllegalValueException(constraints);\n+\t\t}\n+\t\tthis.value = contact;\n+\t}\n+\n+\t/**\n+\t * Checks if a given string is a valid person contact.\n+\t */\n+\tpublic boolean isValidContact(String test) {\n+\t\treturn test.matches(CONTACT_VALIDATION_REGEX);\n+\t}\n+\t+    @Override\n+\tpublic String toString() {\n+\t\treturn value;\n+\t}\n+\n+\t@Override\n+\tpublic boolean equals(Object other) {\n+\t\treturn other == this // short circuit if same object\n+\t\t\t\t|| (other instanceof Contact // instanceof handles nulls\n+\t\t\t\t\t\t&& this.value.equals(((Contact) other).value)); // state check\n+\t}\n+\n+\t@Override\n+\tpublic int hashCode() {\n+\t\treturn value.hashCode();\n+\t}\n+\n+\n+\tpublic boolean isPrivate() {","path":"src/seedu/addressbook/data/person/Contact.java","position":53,"original_position":53,"commit_id":"96d2a91da7da5cae31416e0002e830ff9cfe1807","original_commit_id":"96d2a91da7da5cae31416e0002e830ff9cfe1807","user":{"login":"nishantbudhdev","id":956015,"avatar_url":"https://avatars.githubusercontent.com/u/956015?v=3","gravatar_id":"","url":"https://api.github.com/users/nishantbudhdev","html_url":"https://github.com/nishantbudhdev","followers_url":"https://api.github.com/users/nishantbudhdev/followers","following_url":"https://api.github.com/users/nishantbudhdev/following{/other_user}","gists_url":"https://api.github.com/users/nishantbudhdev/gists{/gist_id}","starred_url":"https://api.github.com/users/nishantbudhdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishantbudhdev/subscriptions","organizations_url":"https://api.github.com/users/nishantbudhdev/orgs","repos_url":"https://api.github.com/users/nishantbudhdev/repos","events_url":"https://api.github.com/users/nishantbudhdev/events{/privacy}","received_events_url":"https://api.github.com/users/nishantbudhdev/received_events","type":"User","site_admin":false},"body":"Use naming conventions for common methods. Therefore, this method should be called `getIsPrivate`. Eclipse can automatically generate the getter or/and setter function for you.","created_at":"2016-09-09T03:00:03Z","updated_at":"2016-09-09T03:00:03Z","html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/1368#discussion_r78122947","pull_request_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/1368","_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments/78122947"},"html":{"href":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/1368#discussion_r78122947"},"pull_request":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/1368"}}},"pull_request":{"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/1368","id":84328496,"html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/1368","diff_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/1368.diff","patch_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/1368.patch","issue_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/1368","number":1368,"state":"open","locked":false,"title":"[T4A3][T15-B4] Leow Zheng Yu","user":{"login":"zhengyu92","id":19277199,"avatar_url":"https://avatars.githubusercontent.com/u/19277199?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengyu92","html_url":"https://github.com/zhengyu92","followers_url":"https://api.github.com/users/zhengyu92/followers","following_url":"https://api.github.com/users/zhengyu92/following{/other_user}","gists_url":"https://api.github.com/users/zhengyu92/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengyu92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengyu92/subscriptions","organizations_url":"https://api.github.com/users/zhengyu92/orgs","repos_url":"https://api.github.com/users/zhengyu92/repos","events_url":"https://api.github.com/users/zhengyu92/events{/privacy}","received_events_url":"https://api.github.com/users/zhengyu92/received_events","type":"User","site_admin":false},"body":"Ready for Review.","created_at":"2016-09-07T16:01:20Z","updated_at":"2016-09-09T03:00:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46768a30299f8857d3da702c864845ff4937c178","assignee":{"login":"nishantbudhdev","id":956015,"avatar_url":"https://avatars.githubusercontent.com/u/956015?v=3","gravatar_id":"","url":"https://api.github.com/users/nishantbudhdev","html_url":"https://github.com/nishantbudhdev","followers_url":"https://api.github.com/users/nishantbudhdev/followers","following_url":"https://api.github.com/users/nishantbudhdev/following{/other_user}","gists_url":"https://api.github.com/users/nishantbudhdev/gists{/gist_id}","starred_url":"https://api.github.com/users/nishantbudhdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishantbudhdev/subscriptions","organizations_url":"https://api.github.com/users/nishantbudhdev/orgs","repos_url":"https://api.github.com/users/nishantbudhdev/repos","events_url":"https://api.github.com/users/nishantbudhdev/events{/privacy}","received_events_url":"https://api.github.com/users/nishantbudhdev/received_events","type":"User","site_admin":false},"assignees":[{"login":"nishantbudhdev","id":956015,"avatar_url":"https://avatars.githubusercontent.com/u/956015?v=3","gravatar_id":"","url":"https://api.github.com/users/nishantbudhdev","html_url":"https://github.com/nishantbudhdev","followers_url":"https://api.github.com/users/nishantbudhdev/followers","following_url":"https://api.github.com/users/nishantbudhdev/following{/other_user}","gists_url":"https://api.github.com/users/nishantbudhdev/gists{/gist_id}","starred_url":"https://api.github.com/users/nishantbudhdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishantbudhdev/subscriptions","organizations_url":"https://api.github.com/users/nishantbudhdev/orgs","repos_url":"https://api.github.com/users/nishantbudhdev/repos","events_url":"https://api.github.com/users/nishantbudhdev/events{/privacy}","received_events_url":"https://api.github.com/users/nishantbudhdev/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/1368/commits","review_comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/1368/comments","review_comment_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/1368/comments","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/96d2a91da7da5cae31416e0002e830ff9cfe1807","head":{"label":"zhengyu92:T4A3","ref":"T4A3","sha":"96d2a91da7da5cae31416e0002e830ff9cfe1807","user":{"login":"zhengyu92","id":19277199,"avatar_url":"https://avatars.githubusercontent.com/u/19277199?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengyu92","html_url":"https://github.com/zhengyu92","followers_url":"https://api.github.com/users/zhengyu92/followers","following_url":"https://api.github.com/users/zhengyu92/following{/other_user}","gists_url":"https://api.github.com/users/zhengyu92/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengyu92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengyu92/subscriptions","organizations_url":"https://api.github.com/users/zhengyu92/orgs","repos_url":"https://api.github.com/users/zhengyu92/repos","events_url":"https://api.github.com/users/zhengyu92/events{/privacy}","received_events_url":"https://api.github.com/users/zhengyu92/received_events","type":"User","site_admin":false},"repo":{"id":66924330,"name":"addressbook-level2","full_name":"zhengyu92/addressbook-level2","owner":{"login":"zhengyu92","id":19277199,"avatar_url":"https://avatars.githubusercontent.com/u/19277199?v=3","gravatar_id":"","url":"https://api.github.com/users/zhengyu92","html_url":"https://github.com/zhengyu92","followers_url":"https://api.github.com/users/zhengyu92/followers","following_url":"https://api.github.com/users/zhengyu92/following{/other_user}","gists_url":"https://api.github.com/users/zhengyu92/gists{/gist_id}","starred_url":"https://api.github.com/users/zhengyu92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhengyu92/subscriptions","organizations_url":"https://api.github.com/users/zhengyu92/orgs","repos_url":"https://api.github.com/users/zhengyu92/repos","events_url":"https://api.github.com/users/zhengyu92/events{/privacy}","received_events_url":"https://api.github.com/users/zhengyu92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhengyu92/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/zhengyu92/addressbook-level2","forks_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/forks","keys_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/events","assignees_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/merges","archive_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/zhengyu92/addressbook-level2/deployments","created_at":"2016-08-30T09:00:14Z","updated_at":"2016-08-30T09:00:15Z","pushed_at":"2016-09-08T06:25:22Z","git_url":"git://github.com/zhengyu92/addressbook-level2.git","ssh_url":"git@github.com:zhengyu92/addressbook-level2.git","clone_url":"https://github.com/zhengyu92/addressbook-level2.git","svn_url":"https://github.com/zhengyu92/addressbook-level2","homepage":null,"size":3005,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nus-cs2103-AY1617S1:master","ref":"master","sha":"46169956515bda6c75ca0b5851b5dab26581be3a","user":{"login":"nus-cs2103-AY1617S1","id":20475842,"avatar_url":"https://avatars.githubusercontent.com/u/20475842?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1617S1","html_url":"https://github.com/nus-cs2103-AY1617S1","followers_url":"https://api.github.com/users/nus-cs2103-AY1617S1/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1617S1/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1617S1/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1617S1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1617S1/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1617S1/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1617S1/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/received_events","type":"Organization","site_admin":false},"repo":{"id":66551047,"name":"addressbook-level2","full_name":"nus-cs2103-AY1617S1/addressbook-level2","owner":{"login":"nus-cs2103-AY1617S1","id":20475842,"avatar_url":"https://avatars.githubusercontent.com/u/20475842?v=3","gravatar_id":"","url":"https://api.github.com/users/nus-cs2103-AY1617S1","html_url":"https://github.com/nus-cs2103-AY1617S1","followers_url":"https://api.github.com/users/nus-cs2103-AY1617S1/followers","following_url":"https://api.github.com/users/nus-cs2103-AY1617S1/following{/other_user}","gists_url":"https://api.github.com/users/nus-cs2103-AY1617S1/gists{/gist_id}","starred_url":"https://api.github.com/users/nus-cs2103-AY1617S1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nus-cs2103-AY1617S1/subscriptions","organizations_url":"https://api.github.com/users/nus-cs2103-AY1617S1/orgs","repos_url":"https://api.github.com/users/nus-cs2103-AY1617S1/repos","events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/events{/privacy}","received_events_url":"https://api.github.com/users/nus-cs2103-AY1617S1/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2","description":"A Java sample application for students. An AddressBook application that uses OOP basics.","fork":true,"url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2","forks_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/forks","keys_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/teams","hooks_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/hooks","issue_events_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/events{/number}","events_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/events","assignees_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/assignees{/user}","branches_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/branches{/branch}","tags_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/tags","blobs_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/refs{/sha}","trees_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/{sha}","languages_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/languages","stargazers_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/stargazers","contributors_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/contributors","subscribers_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/subscribers","subscription_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/subscription","commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/commits{/sha}","git_commits_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/git/commits{/sha}","comments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/comments{/number}","issue_comment_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/comments{/number}","contents_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/contents/{+path}","compare_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/merges","archive_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/downloads","issues_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues{/number}","pulls_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls{/number}","milestones_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/milestones{/number}","notifications_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/labels{/name}","releases_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/releases{/id}","deployments_url":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/deployments","created_at":"2016-08-25T11:09:03Z","updated_at":"2016-09-08T17:36:33Z","pushed_at":"2016-09-09T02:58:40Z","git_url":"git://github.com/nus-cs2103-AY1617S1/addressbook-level2.git","ssh_url":"git@github.com:nus-cs2103-AY1617S1/addressbook-level2.git","clone_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2.git","svn_url":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2","homepage":null,"size":33348,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":256,"mirror_url":null,"open_issues_count":912,"forks":256,"open_issues":912,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/1368"},"html":{"href":"https://github.com/nus-cs2103-AY1617S1/addressbook-level2/pull/1368"},"issue":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/1368"},"comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/issues/1368/comments"},"review_comments":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/1368/comments"},"review_comment":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/pulls/1368/commits"},"statuses":{"href":"https://api.github.com/repos/nus-cs2103-AY1617S1/addressbook-level2/statuses/96d2a91da7da5cae31416e0002e830ff9cfe1807"}}}}
{"actor":{"display_login":"nishantbudhdev"}}