{"action":"created","comment":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/43054048","id":43054048,"diff_hunk":"@@ -0,0 +1,76 @@\n+package ru.unn.agile.Complex.core;\n+\n+public class Complex {\n+    private double real;\n+    private double imaginary;\n+\n+    public Complex(final double real, final double imaginary) {\n+        this.real = real;\n+        this.imaginary = imaginary;\n+    }\n+    public Complex(final double real) {\n+        this.real = real;\n+        this.imaginary = 0;\n+    }\n+    public Complex() {\n+        this.real = 0;\n+        this.imaginary = 0;\n+    }\n+    public boolean isEqual(final Complex number) {\n+        return this.real == number.real\n+               && this.imaginary == number.imaginary;\n+    }\n+    public void setReal(final double real) {\n+        this.real = real;\n+    }\n+    public void setImaginary(final double imaginary) {\n+        this.imaginary = imaginary;\n+    }\n+    public double getReal() {\n+        return this.real;\n+    }\n+    public double getImaginary() {\n+        return this.imaginary;\n+    }\n+    public boolean isZero() {\n+        return this.real == 0\n+               && this.imaginary == 0;\n+    }\n+    public static Complex add(final Complex first, final Complex second) {","path":"code/nesmelov-aleksey/src/main/java/ru/unn/agile/Complex/Model/Complex.java","position":39,"original_position":39,"commit_id":"22d96f992d4ac75026c8e6bfbf6dfe25606b1859","original_commit_id":"22d96f992d4ac75026c8e6bfbf6dfe25606b1859","user":{"login":"AlekseyNesmelov","id":5383389,"avatar_url":"https://avatars.githubusercontent.com/u/5383389?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyNesmelov","html_url":"https://github.com/AlekseyNesmelov","followers_url":"https://api.github.com/users/AlekseyNesmelov/followers","following_url":"https://api.github.com/users/AlekseyNesmelov/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyNesmelov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyNesmelov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyNesmelov/subscriptions","organizations_url":"https://api.github.com/users/AlekseyNesmelov/orgs","repos_url":"https://api.github.com/users/AlekseyNesmelov/repos","events_url":"https://api.github.com/users/AlekseyNesmelov/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyNesmelov/received_events","type":"User","site_admin":false},"body":"@Daniil-Osokin , то есть для каждой операции писать парную с одним параметром ? например, public Complex add( final Complex second)\r\nИли вообще оставить только второй вариант?","created_at":"2015-10-26T21:14:31Z","updated_at":"2015-10-26T21:14:31Z","html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/18#discussion_r43054048","pull_request_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments/43054048"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/18#discussion_r43054048"},"pull_request":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/18","id":48500709,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/18","diff_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/18.diff","patch_url":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/18.patch","issue_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/18","number":18,"state":"open","locked":false,"title":"Несмелов Алексей - Лабораторная # 1","user":{"login":"AlekseyNesmelov","id":5383389,"avatar_url":"https://avatars.githubusercontent.com/u/5383389?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyNesmelov","html_url":"https://github.com/AlekseyNesmelov","followers_url":"https://api.github.com/users/AlekseyNesmelov/followers","following_url":"https://api.github.com/users/AlekseyNesmelov/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyNesmelov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyNesmelov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyNesmelov/subscriptions","organizations_url":"https://api.github.com/users/AlekseyNesmelov/orgs","repos_url":"https://api.github.com/users/AlekseyNesmelov/repos","events_url":"https://api.github.com/users/AlekseyNesmelov/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyNesmelov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-22T19:22:19Z","updated_at":"2015-10-26T21:14:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"788141da2d838a78c84a6a2f7642dd81334c2e80","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/18/commits","review_comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/18/comments","review_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/18/comments","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/22d96f992d4ac75026c8e6bfbf6dfe25606b1859","head":{"label":"AlekseyNesmelov:lab1-tdd-complex","ref":"lab1-tdd-complex","sha":"22d96f992d4ac75026c8e6bfbf6dfe25606b1859","user":{"login":"AlekseyNesmelov","id":5383389,"avatar_url":"https://avatars.githubusercontent.com/u/5383389?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyNesmelov","html_url":"https://github.com/AlekseyNesmelov","followers_url":"https://api.github.com/users/AlekseyNesmelov/followers","following_url":"https://api.github.com/users/AlekseyNesmelov/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyNesmelov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyNesmelov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyNesmelov/subscriptions","organizations_url":"https://api.github.com/users/AlekseyNesmelov/orgs","repos_url":"https://api.github.com/users/AlekseyNesmelov/repos","events_url":"https://api.github.com/users/AlekseyNesmelov/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyNesmelov/received_events","type":"User","site_admin":false},"repo":{"id":44695362,"name":"agile-course-practice","full_name":"AlekseyNesmelov/agile-course-practice","owner":{"login":"AlekseyNesmelov","id":5383389,"avatar_url":"https://avatars.githubusercontent.com/u/5383389?v=3","gravatar_id":"","url":"https://api.github.com/users/AlekseyNesmelov","html_url":"https://github.com/AlekseyNesmelov","followers_url":"https://api.github.com/users/AlekseyNesmelov/followers","following_url":"https://api.github.com/users/AlekseyNesmelov/following{/other_user}","gists_url":"https://api.github.com/users/AlekseyNesmelov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlekseyNesmelov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlekseyNesmelov/subscriptions","organizations_url":"https://api.github.com/users/AlekseyNesmelov/orgs","repos_url":"https://api.github.com/users/AlekseyNesmelov/repos","events_url":"https://api.github.com/users/AlekseyNesmelov/events{/privacy}","received_events_url":"https://api.github.com/users/AlekseyNesmelov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlekseyNesmelov/agile-course-practice","description":"Проект-шаблон для выполнения лабораторных работ по курсу Agile Development","fork":true,"url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice","forks_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/forks","keys_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/events","assignees_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/merges","archive_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/AlekseyNesmelov/agile-course-practice/releases{/id}","created_at":"2015-10-21T18:14:11Z","updated_at":"2015-10-21T18:14:12Z","pushed_at":"2015-10-23T08:27:32Z","git_url":"git://github.com/AlekseyNesmelov/agile-course-practice.git","ssh_url":"git@github.com:AlekseyNesmelov/agile-course-practice.git","clone_url":"https://github.com/AlekseyNesmelov/agile-course-practice.git","svn_url":"https://github.com/AlekseyNesmelov/agile-course-practice","homepage":"","size":250,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"UNN-VMK-Software:master","ref":"master","sha":"9a7ebd0e4200eb5939cfaeb98d846fd05e861c8b","user":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"repo":{"id":44518750,"name":"agile-course-practice","full_name":"UNN-VMK-Software/agile-course-practice","owner":{"login":"UNN-VMK-Software","id":5463209,"avatar_url":"https://avatars.githubusercontent.com/u/5463209?v=3","gravatar_id":"","url":"https://api.github.com/users/UNN-VMK-Software","html_url":"https://github.com/UNN-VMK-Software","followers_url":"https://api.github.com/users/UNN-VMK-Software/followers","following_url":"https://api.github.com/users/UNN-VMK-Software/following{/other_user}","gists_url":"https://api.github.com/users/UNN-VMK-Software/gists{/gist_id}","starred_url":"https://api.github.com/users/UNN-VMK-Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UNN-VMK-Software/subscriptions","organizations_url":"https://api.github.com/users/UNN-VMK-Software/orgs","repos_url":"https://api.github.com/users/UNN-VMK-Software/repos","events_url":"https://api.github.com/users/UNN-VMK-Software/events{/privacy}","received_events_url":"https://api.github.com/users/UNN-VMK-Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UNN-VMK-Software/agile-course-practice","description":"Проект-шаблон для выполнения лабораторных работ по курсу Agile Development","fork":false,"url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice","forks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/forks","keys_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/teams","hooks_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/hooks","issue_events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/events{/number}","events_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/events","assignees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/assignees{/user}","branches_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/branches{/branch}","tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/tags","blobs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/languages","stargazers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/stargazers","contributors_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contributors","subscribers_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscribers","subscription_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/subscription","commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/contents/{+path}","compare_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/merges","archive_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/downloads","issues_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues{/number}","pulls_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/labels{/name}","releases_url":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/releases{/id}","created_at":"2015-10-19T07:42:22Z","updated_at":"2015-10-20T06:25:13Z","pushed_at":"2015-10-26T19:22:06Z","git_url":"git://github.com/UNN-VMK-Software/agile-course-practice.git","ssh_url":"git@github.com:UNN-VMK-Software/agile-course-practice.git","clone_url":"https://github.com/UNN-VMK-Software/agile-course-practice.git","svn_url":"https://github.com/UNN-VMK-Software/agile-course-practice","homepage":"","size":687,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":35,"mirror_url":null,"open_issues_count":10,"forks":35,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/18"},"html":{"href":"https://github.com/UNN-VMK-Software/agile-course-practice/pull/18"},"issue":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/18"},"comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/UNN-VMK-Software/agile-course-practice/statuses/22d96f992d4ac75026c8e6bfbf6dfe25606b1859"}}}}