{"action":"created","comment":{"url":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/comments/25435572","id":25435572,"diff_hunk":"@@ -0,0 +1,46 @@\n+\r\n+package com.selftest;\r\n+\r\n+import java.util.function.IntPredicate;\r\n+import java.util.stream.IntStream;\r\n+import java.util.stream.Stream;\r\n+\r\n+class MyIntNumber {\r\n+\r\n+\tprivate int value;\r\n+\r\n+\tMyIntNumber( int number ) {\r\n+\t\tthis.value = number;\r\n+\t}\r\n+\r\n+\tint getNumber() {\r\n+\t\treturn value;\r\n+\t}\r\n+\r\n+\tboolean isFactor( int number ) {\r\n+\t\treturn value % number == 0;\r\n+\t}\r\n+\r\n+\tboolean hasCommonFactor( int number ) {\r\n+\t\treturn IntStream.range( 2, value )\r\n+\t\t                .anyMatch( i -> isFactor( i ) && number % i == 0 );\r","path":"src/com/selftest/CommonFactor.java","position":26,"original_position":26,"commit_id":"afdaf7686f4565574fd0b97fc1c019d7b4bf7d0c","original_commit_id":"afdaf7686f4565574fd0b97fc1c019d7b4bf7d0c","user":{"login":"Utopia1138","id":2646781,"avatar_url":"https://avatars.githubusercontent.com/u/2646781?v=3","gravatar_id":"","url":"https://api.github.com/users/Utopia1138","html_url":"https://github.com/Utopia1138","followers_url":"https://api.github.com/users/Utopia1138/followers","following_url":"https://api.github.com/users/Utopia1138/following{/other_user}","gists_url":"https://api.github.com/users/Utopia1138/gists{/gist_id}","starred_url":"https://api.github.com/users/Utopia1138/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Utopia1138/subscriptions","organizations_url":"https://api.github.com/users/Utopia1138/orgs","repos_url":"https://api.github.com/users/Utopia1138/repos","events_url":"https://api.github.com/users/Utopia1138/events{/privacy}","received_events_url":"https://api.github.com/users/Utopia1138/received_events","type":"User","site_admin":false},"body":"A bit inefficient, but it does look elegant enough.","created_at":"2015-02-26T15:36:30Z","updated_at":"2015-02-26T15:36:30Z","html_url":"https://github.com/SandyThomson/Java-Training/pull/147#discussion_r25435572","pull_request_url":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/147","_links":{"self":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/comments/25435572"},"html":{"href":"https://github.com/SandyThomson/Java-Training/pull/147#discussion_r25435572"},"pull_request":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/147"}}},"pull_request":{"url":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/147","id":29555461,"html_url":"https://github.com/SandyThomson/Java-Training/pull/147","diff_url":"https://github.com/SandyThomson/Java-Training/pull/147.diff","patch_url":"https://github.com/SandyThomson/Java-Training/pull/147.patch","issue_url":"https://api.github.com/repos/SandyThomson/Java-Training/issues/147","number":147,"state":"open","locked":false,"title":"ncl Chapter 14","user":{"login":"NormanLittle","id":9212479,"avatar_url":"https://avatars.githubusercontent.com/u/9212479?v=3","gravatar_id":"","url":"https://api.github.com/users/NormanLittle","html_url":"https://github.com/NormanLittle","followers_url":"https://api.github.com/users/NormanLittle/followers","following_url":"https://api.github.com/users/NormanLittle/following{/other_user}","gists_url":"https://api.github.com/users/NormanLittle/gists{/gist_id}","starred_url":"https://api.github.com/users/NormanLittle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NormanLittle/subscriptions","organizations_url":"https://api.github.com/users/NormanLittle/orgs","repos_url":"https://api.github.com/users/NormanLittle/repos","events_url":"https://api.github.com/users/NormanLittle/events{/privacy}","received_events_url":"https://api.github.com/users/NormanLittle/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-18T19:34:31Z","updated_at":"2015-02-26T15:36:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acb3416c79ca91d6416f12cb178d493bed192d89","assignee":{"login":"ardavey","id":2790047,"avatar_url":"https://avatars.githubusercontent.com/u/2790047?v=3","gravatar_id":"","url":"https://api.github.com/users/ardavey","html_url":"https://github.com/ardavey","followers_url":"https://api.github.com/users/ardavey/followers","following_url":"https://api.github.com/users/ardavey/following{/other_user}","gists_url":"https://api.github.com/users/ardavey/gists{/gist_id}","starred_url":"https://api.github.com/users/ardavey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ardavey/subscriptions","organizations_url":"https://api.github.com/users/ardavey/orgs","repos_url":"https://api.github.com/users/ardavey/repos","events_url":"https://api.github.com/users/ardavey/events{/privacy}","received_events_url":"https://api.github.com/users/ardavey/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/147/commits","review_comments_url":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/147/comments","review_comment_url":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SandyThomson/Java-Training/issues/147/comments","statuses_url":"https://api.github.com/repos/SandyThomson/Java-Training/statuses/afdaf7686f4565574fd0b97fc1c019d7b4bf7d0c","head":{"label":"SandyThomson:chapter14_ncl","ref":"chapter14_ncl","sha":"afdaf7686f4565574fd0b97fc1c019d7b4bf7d0c","user":{"login":"SandyThomson","id":7848639,"avatar_url":"https://avatars.githubusercontent.com/u/7848639?v=3","gravatar_id":"","url":"https://api.github.com/users/SandyThomson","html_url":"https://github.com/SandyThomson","followers_url":"https://api.github.com/users/SandyThomson/followers","following_url":"https://api.github.com/users/SandyThomson/following{/other_user}","gists_url":"https://api.github.com/users/SandyThomson/gists{/gist_id}","starred_url":"https://api.github.com/users/SandyThomson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SandyThomson/subscriptions","organizations_url":"https://api.github.com/users/SandyThomson/orgs","repos_url":"https://api.github.com/users/SandyThomson/repos","events_url":"https://api.github.com/users/SandyThomson/events{/privacy}","received_events_url":"https://api.github.com/users/SandyThomson/received_events","type":"User","site_admin":false},"repo":{"id":24990054,"name":"Java-Training","full_name":"SandyThomson/Java-Training","owner":{"login":"SandyThomson","id":7848639,"avatar_url":"https://avatars.githubusercontent.com/u/7848639?v=3","gravatar_id":"","url":"https://api.github.com/users/SandyThomson","html_url":"https://github.com/SandyThomson","followers_url":"https://api.github.com/users/SandyThomson/followers","following_url":"https://api.github.com/users/SandyThomson/following{/other_user}","gists_url":"https://api.github.com/users/SandyThomson/gists{/gist_id}","starred_url":"https://api.github.com/users/SandyThomson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SandyThomson/subscriptions","organizations_url":"https://api.github.com/users/SandyThomson/orgs","repos_url":"https://api.github.com/users/SandyThomson/repos","events_url":"https://api.github.com/users/SandyThomson/events{/privacy}","received_events_url":"https://api.github.com/users/SandyThomson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SandyThomson/Java-Training","description":"","fork":false,"url":"https://api.github.com/repos/SandyThomson/Java-Training","forks_url":"https://api.github.com/repos/SandyThomson/Java-Training/forks","keys_url":"https://api.github.com/repos/SandyThomson/Java-Training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SandyThomson/Java-Training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SandyThomson/Java-Training/teams","hooks_url":"https://api.github.com/repos/SandyThomson/Java-Training/hooks","issue_events_url":"https://api.github.com/repos/SandyThomson/Java-Training/issues/events{/number}","events_url":"https://api.github.com/repos/SandyThomson/Java-Training/events","assignees_url":"https://api.github.com/repos/SandyThomson/Java-Training/assignees{/user}","branches_url":"https://api.github.com/repos/SandyThomson/Java-Training/branches{/branch}","tags_url":"https://api.github.com/repos/SandyThomson/Java-Training/tags","blobs_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/refs{/sha}","trees_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SandyThomson/Java-Training/statuses/{sha}","languages_url":"https://api.github.com/repos/SandyThomson/Java-Training/languages","stargazers_url":"https://api.github.com/repos/SandyThomson/Java-Training/stargazers","contributors_url":"https://api.github.com/repos/SandyThomson/Java-Training/contributors","subscribers_url":"https://api.github.com/repos/SandyThomson/Java-Training/subscribers","subscription_url":"https://api.github.com/repos/SandyThomson/Java-Training/subscription","commits_url":"https://api.github.com/repos/SandyThomson/Java-Training/commits{/sha}","git_commits_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/commits{/sha}","comments_url":"https://api.github.com/repos/SandyThomson/Java-Training/comments{/number}","issue_comment_url":"https://api.github.com/repos/SandyThomson/Java-Training/issues/comments{/number}","contents_url":"https://api.github.com/repos/SandyThomson/Java-Training/contents/{+path}","compare_url":"https://api.github.com/repos/SandyThomson/Java-Training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SandyThomson/Java-Training/merges","archive_url":"https://api.github.com/repos/SandyThomson/Java-Training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SandyThomson/Java-Training/downloads","issues_url":"https://api.github.com/repos/SandyThomson/Java-Training/issues{/number}","pulls_url":"https://api.github.com/repos/SandyThomson/Java-Training/pulls{/number}","milestones_url":"https://api.github.com/repos/SandyThomson/Java-Training/milestones{/number}","notifications_url":"https://api.github.com/repos/SandyThomson/Java-Training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SandyThomson/Java-Training/labels{/name}","releases_url":"https://api.github.com/repos/SandyThomson/Java-Training/releases{/id}","created_at":"2014-10-09T13:20:54Z","updated_at":"2014-11-27T12:50:54Z","pushed_at":"2015-02-25T22:57:07Z","git_url":"git://github.com/SandyThomson/Java-Training.git","ssh_url":"git@github.com:SandyThomson/Java-Training.git","clone_url":"https://github.com/SandyThomson/Java-Training.git","svn_url":"https://github.com/SandyThomson/Java-Training","homepage":null,"size":2827,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"SandyThomson:master","ref":"master","sha":"3c31c73f626f53e3fba4f8aff24d760036d8b253","user":{"login":"SandyThomson","id":7848639,"avatar_url":"https://avatars.githubusercontent.com/u/7848639?v=3","gravatar_id":"","url":"https://api.github.com/users/SandyThomson","html_url":"https://github.com/SandyThomson","followers_url":"https://api.github.com/users/SandyThomson/followers","following_url":"https://api.github.com/users/SandyThomson/following{/other_user}","gists_url":"https://api.github.com/users/SandyThomson/gists{/gist_id}","starred_url":"https://api.github.com/users/SandyThomson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SandyThomson/subscriptions","organizations_url":"https://api.github.com/users/SandyThomson/orgs","repos_url":"https://api.github.com/users/SandyThomson/repos","events_url":"https://api.github.com/users/SandyThomson/events{/privacy}","received_events_url":"https://api.github.com/users/SandyThomson/received_events","type":"User","site_admin":false},"repo":{"id":24990054,"name":"Java-Training","full_name":"SandyThomson/Java-Training","owner":{"login":"SandyThomson","id":7848639,"avatar_url":"https://avatars.githubusercontent.com/u/7848639?v=3","gravatar_id":"","url":"https://api.github.com/users/SandyThomson","html_url":"https://github.com/SandyThomson","followers_url":"https://api.github.com/users/SandyThomson/followers","following_url":"https://api.github.com/users/SandyThomson/following{/other_user}","gists_url":"https://api.github.com/users/SandyThomson/gists{/gist_id}","starred_url":"https://api.github.com/users/SandyThomson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SandyThomson/subscriptions","organizations_url":"https://api.github.com/users/SandyThomson/orgs","repos_url":"https://api.github.com/users/SandyThomson/repos","events_url":"https://api.github.com/users/SandyThomson/events{/privacy}","received_events_url":"https://api.github.com/users/SandyThomson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SandyThomson/Java-Training","description":"","fork":false,"url":"https://api.github.com/repos/SandyThomson/Java-Training","forks_url":"https://api.github.com/repos/SandyThomson/Java-Training/forks","keys_url":"https://api.github.com/repos/SandyThomson/Java-Training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SandyThomson/Java-Training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SandyThomson/Java-Training/teams","hooks_url":"https://api.github.com/repos/SandyThomson/Java-Training/hooks","issue_events_url":"https://api.github.com/repos/SandyThomson/Java-Training/issues/events{/number}","events_url":"https://api.github.com/repos/SandyThomson/Java-Training/events","assignees_url":"https://api.github.com/repos/SandyThomson/Java-Training/assignees{/user}","branches_url":"https://api.github.com/repos/SandyThomson/Java-Training/branches{/branch}","tags_url":"https://api.github.com/repos/SandyThomson/Java-Training/tags","blobs_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/refs{/sha}","trees_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SandyThomson/Java-Training/statuses/{sha}","languages_url":"https://api.github.com/repos/SandyThomson/Java-Training/languages","stargazers_url":"https://api.github.com/repos/SandyThomson/Java-Training/stargazers","contributors_url":"https://api.github.com/repos/SandyThomson/Java-Training/contributors","subscribers_url":"https://api.github.com/repos/SandyThomson/Java-Training/subscribers","subscription_url":"https://api.github.com/repos/SandyThomson/Java-Training/subscription","commits_url":"https://api.github.com/repos/SandyThomson/Java-Training/commits{/sha}","git_commits_url":"https://api.github.com/repos/SandyThomson/Java-Training/git/commits{/sha}","comments_url":"https://api.github.com/repos/SandyThomson/Java-Training/comments{/number}","issue_comment_url":"https://api.github.com/repos/SandyThomson/Java-Training/issues/comments{/number}","contents_url":"https://api.github.com/repos/SandyThomson/Java-Training/contents/{+path}","compare_url":"https://api.github.com/repos/SandyThomson/Java-Training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SandyThomson/Java-Training/merges","archive_url":"https://api.github.com/repos/SandyThomson/Java-Training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SandyThomson/Java-Training/downloads","issues_url":"https://api.github.com/repos/SandyThomson/Java-Training/issues{/number}","pulls_url":"https://api.github.com/repos/SandyThomson/Java-Training/pulls{/number}","milestones_url":"https://api.github.com/repos/SandyThomson/Java-Training/milestones{/number}","notifications_url":"https://api.github.com/repos/SandyThomson/Java-Training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SandyThomson/Java-Training/labels{/name}","releases_url":"https://api.github.com/repos/SandyThomson/Java-Training/releases{/id}","created_at":"2014-10-09T13:20:54Z","updated_at":"2014-11-27T12:50:54Z","pushed_at":"2015-02-25T22:57:07Z","git_url":"git://github.com/SandyThomson/Java-Training.git","ssh_url":"git@github.com:SandyThomson/Java-Training.git","clone_url":"https://github.com/SandyThomson/Java-Training.git","svn_url":"https://github.com/SandyThomson/Java-Training","homepage":null,"size":2827,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/147"},"html":{"href":"https://github.com/SandyThomson/Java-Training/pull/147"},"issue":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/issues/147"},"comments":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/issues/147/comments"},"review_comments":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/147/comments"},"review_comment":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/pulls/147/commits"},"statuses":{"href":"https://api.github.com/repos/SandyThomson/Java-Training/statuses/afdaf7686f4565574fd0b97fc1c019d7b4bf7d0c"}}}}