{"action":"created","comment":{"url":"https://api.github.com/repos/v-log/Training/pulls/comments/79332091","id":79332091,"diff_hunk":"@@ -90,21 +101,25 @@ public String dayOfTheWeek () throws DateNotLegalException {\n         }\n         else throw new DateNotLegalException(\"To get the weekday date must be in 21st century. \", this.month, this.day, this.year);\n     }\n-}\n \n-// Исключение с уведомлением о вводе недопустимой даты\n-class DateNotLegalException extends Exception {\n+    public boolean equals(Object x) {\n+        if (this == x) return true;\n+        if (x == null) return false;\n+        if (this.getClass() != x.getClass()) return false;\n \n-    private int month;\n-    private int day;\n-    private int year;\n-    public String getDate() {\n-        return month + \"/\" + day + \"/\" + year;\n+        SmartDate that = (SmartDate) x;\n+\n+        if(this.month() != that.month()) return false;\n+        if(this.day() != that.day()) return false;\n+        if(this.year() != that.year()) return false;\n+        return true;\n     }\n-    public DateNotLegalException (String message, int m, int d, int y) {\n-        super(message);\n-        month = m;\n-        day = d;\n-        year = y;\n+\n+    public int hashCode() {\n+        int hash = 1;","path":"src/Ex_1_2_12/SmartDate.java","position":50,"original_position":50,"commit_id":"4ce5bd9beaea3102fbcc5a5bc19cabc4c9e8da7c","original_commit_id":"4ce5bd9beaea3102fbcc5a5bc19cabc4c9e8da7c","user":{"login":"be9","id":920,"avatar_url":"https://avatars.githubusercontent.com/u/920?v=3","gravatar_id":"","url":"https://api.github.com/users/be9","html_url":"https://github.com/be9","followers_url":"https://api.github.com/users/be9/followers","following_url":"https://api.github.com/users/be9/following{/other_user}","gists_url":"https://api.github.com/users/be9/gists{/gist_id}","starred_url":"https://api.github.com/users/be9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/be9/subscriptions","organizations_url":"https://api.github.com/users/be9/orgs","repos_url":"https://api.github.com/users/be9/repos","events_url":"https://api.github.com/users/be9/events{/privacy}","received_events_url":"https://api.github.com/users/be9/received_events","type":"User","site_admin":false},"body":"Здесь можно проще. Для даты 19.09.2016 просто верни число 20160919. Они все в int влезут.\r\n","created_at":"2016-09-19T06:26:37Z","updated_at":"2016-09-19T06:30:26Z","html_url":"https://github.com/v-log/Training/pull/10#discussion_r79332091","pull_request_url":"https://api.github.com/repos/v-log/Training/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/v-log/Training/pulls/comments/79332091"},"html":{"href":"https://github.com/v-log/Training/pull/10#discussion_r79332091"},"pull_request":{"href":"https://api.github.com/repos/v-log/Training/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/v-log/Training/pulls/10","id":84322708,"html_url":"https://github.com/v-log/Training/pull/10","diff_url":"https://github.com/v-log/Training/pull/10.diff","patch_url":"https://github.com/v-log/Training/pull/10.patch","issue_url":"https://api.github.com/repos/v-log/Training/issues/10","number":10,"state":"open","locked":false,"title":"Решение задач 1.2.13 и 1.2.19. (Пока без тестов)","user":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"body":"Ввод: 6 аргументов через пробел - на каждую транзакцию по три.\r\nИсключения будут детализированы.","created_at":"2016-09-07T15:29:55Z","updated_at":"2016-09-19T06:30:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8dad77dad03989298dced8f4a5b681c3a4434b5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/v-log/Training/pulls/10/commits","review_comments_url":"https://api.github.com/repos/v-log/Training/pulls/10/comments","review_comment_url":"https://api.github.com/repos/v-log/Training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/v-log/Training/issues/10/comments","statuses_url":"https://api.github.com/repos/v-log/Training/statuses/4ce5bd9beaea3102fbcc5a5bc19cabc4c9e8da7c","head":{"label":"v-log:1_2_13+1_2_19","ref":"1_2_13+1_2_19","sha":"4ce5bd9beaea3102fbcc5a5bc19cabc4c9e8da7c","user":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"repo":{"id":61813885,"name":"Training","full_name":"v-log/Training","owner":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/v-log/Training","description":"Training Exercises","fork":false,"url":"https://api.github.com/repos/v-log/Training","forks_url":"https://api.github.com/repos/v-log/Training/forks","keys_url":"https://api.github.com/repos/v-log/Training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/v-log/Training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/v-log/Training/teams","hooks_url":"https://api.github.com/repos/v-log/Training/hooks","issue_events_url":"https://api.github.com/repos/v-log/Training/issues/events{/number}","events_url":"https://api.github.com/repos/v-log/Training/events","assignees_url":"https://api.github.com/repos/v-log/Training/assignees{/user}","branches_url":"https://api.github.com/repos/v-log/Training/branches{/branch}","tags_url":"https://api.github.com/repos/v-log/Training/tags","blobs_url":"https://api.github.com/repos/v-log/Training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/v-log/Training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/v-log/Training/git/refs{/sha}","trees_url":"https://api.github.com/repos/v-log/Training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/v-log/Training/statuses/{sha}","languages_url":"https://api.github.com/repos/v-log/Training/languages","stargazers_url":"https://api.github.com/repos/v-log/Training/stargazers","contributors_url":"https://api.github.com/repos/v-log/Training/contributors","subscribers_url":"https://api.github.com/repos/v-log/Training/subscribers","subscription_url":"https://api.github.com/repos/v-log/Training/subscription","commits_url":"https://api.github.com/repos/v-log/Training/commits{/sha}","git_commits_url":"https://api.github.com/repos/v-log/Training/git/commits{/sha}","comments_url":"https://api.github.com/repos/v-log/Training/comments{/number}","issue_comment_url":"https://api.github.com/repos/v-log/Training/issues/comments{/number}","contents_url":"https://api.github.com/repos/v-log/Training/contents/{+path}","compare_url":"https://api.github.com/repos/v-log/Training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/v-log/Training/merges","archive_url":"https://api.github.com/repos/v-log/Training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/v-log/Training/downloads","issues_url":"https://api.github.com/repos/v-log/Training/issues{/number}","pulls_url":"https://api.github.com/repos/v-log/Training/pulls{/number}","milestones_url":"https://api.github.com/repos/v-log/Training/milestones{/number}","notifications_url":"https://api.github.com/repos/v-log/Training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/v-log/Training/labels{/name}","releases_url":"https://api.github.com/repos/v-log/Training/releases{/id}","deployments_url":"https://api.github.com/repos/v-log/Training/deployments","created_at":"2016-06-23T14:58:09Z","updated_at":"2016-06-25T09:38:37Z","pushed_at":"2016-09-18T02:28:10Z","git_url":"git://github.com/v-log/Training.git","ssh_url":"git@github.com:v-log/Training.git","clone_url":"https://github.com/v-log/Training.git","svn_url":"https://github.com/v-log/Training","homepage":null,"size":2115,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"v-log:master","ref":"master","sha":"36514c4aeb3037af5cc3eed5ced324716059e6b3","user":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"repo":{"id":61813885,"name":"Training","full_name":"v-log/Training","owner":{"login":"v-log","id":19331788,"avatar_url":"https://avatars.githubusercontent.com/u/19331788?v=3","gravatar_id":"","url":"https://api.github.com/users/v-log","html_url":"https://github.com/v-log","followers_url":"https://api.github.com/users/v-log/followers","following_url":"https://api.github.com/users/v-log/following{/other_user}","gists_url":"https://api.github.com/users/v-log/gists{/gist_id}","starred_url":"https://api.github.com/users/v-log/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/v-log/subscriptions","organizations_url":"https://api.github.com/users/v-log/orgs","repos_url":"https://api.github.com/users/v-log/repos","events_url":"https://api.github.com/users/v-log/events{/privacy}","received_events_url":"https://api.github.com/users/v-log/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/v-log/Training","description":"Training Exercises","fork":false,"url":"https://api.github.com/repos/v-log/Training","forks_url":"https://api.github.com/repos/v-log/Training/forks","keys_url":"https://api.github.com/repos/v-log/Training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/v-log/Training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/v-log/Training/teams","hooks_url":"https://api.github.com/repos/v-log/Training/hooks","issue_events_url":"https://api.github.com/repos/v-log/Training/issues/events{/number}","events_url":"https://api.github.com/repos/v-log/Training/events","assignees_url":"https://api.github.com/repos/v-log/Training/assignees{/user}","branches_url":"https://api.github.com/repos/v-log/Training/branches{/branch}","tags_url":"https://api.github.com/repos/v-log/Training/tags","blobs_url":"https://api.github.com/repos/v-log/Training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/v-log/Training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/v-log/Training/git/refs{/sha}","trees_url":"https://api.github.com/repos/v-log/Training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/v-log/Training/statuses/{sha}","languages_url":"https://api.github.com/repos/v-log/Training/languages","stargazers_url":"https://api.github.com/repos/v-log/Training/stargazers","contributors_url":"https://api.github.com/repos/v-log/Training/contributors","subscribers_url":"https://api.github.com/repos/v-log/Training/subscribers","subscription_url":"https://api.github.com/repos/v-log/Training/subscription","commits_url":"https://api.github.com/repos/v-log/Training/commits{/sha}","git_commits_url":"https://api.github.com/repos/v-log/Training/git/commits{/sha}","comments_url":"https://api.github.com/repos/v-log/Training/comments{/number}","issue_comment_url":"https://api.github.com/repos/v-log/Training/issues/comments{/number}","contents_url":"https://api.github.com/repos/v-log/Training/contents/{+path}","compare_url":"https://api.github.com/repos/v-log/Training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/v-log/Training/merges","archive_url":"https://api.github.com/repos/v-log/Training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/v-log/Training/downloads","issues_url":"https://api.github.com/repos/v-log/Training/issues{/number}","pulls_url":"https://api.github.com/repos/v-log/Training/pulls{/number}","milestones_url":"https://api.github.com/repos/v-log/Training/milestones{/number}","notifications_url":"https://api.github.com/repos/v-log/Training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/v-log/Training/labels{/name}","releases_url":"https://api.github.com/repos/v-log/Training/releases{/id}","deployments_url":"https://api.github.com/repos/v-log/Training/deployments","created_at":"2016-06-23T14:58:09Z","updated_at":"2016-06-25T09:38:37Z","pushed_at":"2016-09-18T02:28:10Z","git_url":"git://github.com/v-log/Training.git","ssh_url":"git@github.com:v-log/Training.git","clone_url":"https://github.com/v-log/Training.git","svn_url":"https://github.com/v-log/Training","homepage":null,"size":2115,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/v-log/Training/pulls/10"},"html":{"href":"https://github.com/v-log/Training/pull/10"},"issue":{"href":"https://api.github.com/repos/v-log/Training/issues/10"},"comments":{"href":"https://api.github.com/repos/v-log/Training/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/v-log/Training/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/v-log/Training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/v-log/Training/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/v-log/Training/statuses/4ce5bd9beaea3102fbcc5a5bc19cabc4c9e8da7c"}}}}
{"actor":{"display_login":"be9"}}