{"action":"created","comment":{"url":"https://api.github.com/repos/GordanMasic/homeworks/pulls/comments/36831161","id":36831161,"diff_hunk":"@@ -0,0 +1,119 @@\n+package ba.bitcamp.homewirkWeekend9.ThreeTreadsOfOneClass;\n+\n+/**\n+ * \n+ * @author Gordan\n+ *\n+ *         This class shows how can three threads work together. All three\n+ *         threads are initialized with same inner class that extends Thread\n+ *         class. In constructor they are receiving two parameters. First one is\n+ *         time delay used for thread sleep, and the other one is message that\n+ *         user writes. Depending on message threads are doing different things.\n+ */\n+public class MainThread {\n+\n+\t// Constants\n+\tpublic static final String NUMBERS_1_TO_10 = \"numbers\";","path":"homeworkWeekend9/src/ba/bitcamp/homewirkWeekend9/ThreeTreadsOfOneClass/MainThread.java","position":16,"original_position":16,"commit_id":"5eedc327d16f025bcdfcd9a278f419284c979dc4","original_commit_id":"5eedc327d16f025bcdfcd9a278f419284c979dc4","user":{"login":"jasminb","id":3043239,"avatar_url":"https://avatars.githubusercontent.com/u/3043239?v=3","gravatar_id":"","url":"https://api.github.com/users/jasminb","html_url":"https://github.com/jasminb","followers_url":"https://api.github.com/users/jasminb/followers","following_url":"https://api.github.com/users/jasminb/following{/other_user}","gists_url":"https://api.github.com/users/jasminb/gists{/gist_id}","starred_url":"https://api.github.com/users/jasminb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasminb/subscriptions","organizations_url":"https://api.github.com/users/jasminb/orgs","repos_url":"https://api.github.com/users/jasminb/repos","events_url":"https://api.github.com/users/jasminb/events{/privacy}","received_events_url":"https://api.github.com/users/jasminb/received_events","type":"User","site_admin":false},"body":"Cleaner solution would be to have an enum that has values for each tread type.","created_at":"2015-08-12T06:56:18Z","updated_at":"2015-08-12T06:56:18Z","html_url":"https://github.com/GordanMasic/homeworks/pull/17#discussion_r36831161","pull_request_url":"https://api.github.com/repos/GordanMasic/homeworks/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/GordanMasic/homeworks/pulls/comments/36831161"},"html":{"href":"https://github.com/GordanMasic/homeworks/pull/17#discussion_r36831161"},"pull_request":{"href":"https://api.github.com/repos/GordanMasic/homeworks/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/GordanMasic/homeworks/pulls/17","id":41951130,"html_url":"https://github.com/GordanMasic/homeworks/pull/17","diff_url":"https://github.com/GordanMasic/homeworks/pull/17.diff","patch_url":"https://github.com/GordanMasic/homeworks/pull/17.patch","issue_url":"https://api.github.com/repos/GordanMasic/homeworks/issues/17","number":17,"state":"open","locked":false,"title":"Homework w12 d03","user":{"login":"GordanMasic","id":12545850,"avatar_url":"https://avatars.githubusercontent.com/u/12545850?v=3","gravatar_id":"","url":"https://api.github.com/users/GordanMasic","html_url":"https://github.com/GordanMasic","followers_url":"https://api.github.com/users/GordanMasic/followers","following_url":"https://api.github.com/users/GordanMasic/following{/other_user}","gists_url":"https://api.github.com/users/GordanMasic/gists{/gist_id}","starred_url":"https://api.github.com/users/GordanMasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordanMasic/subscriptions","organizations_url":"https://api.github.com/users/GordanMasic/orgs","repos_url":"https://api.github.com/users/GordanMasic/repos","events_url":"https://api.github.com/users/GordanMasic/events{/privacy}","received_events_url":"https://api.github.com/users/GordanMasic/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-08T08:56:26Z","updated_at":"2015-08-12T06:56:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"851b863bf8dda9fef2c9ece9677de17b51949e30","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GordanMasic/homeworks/pulls/17/commits","review_comments_url":"https://api.github.com/repos/GordanMasic/homeworks/pulls/17/comments","review_comment_url":"https://api.github.com/repos/GordanMasic/homeworks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GordanMasic/homeworks/issues/17/comments","statuses_url":"https://api.github.com/repos/GordanMasic/homeworks/statuses/5eedc327d16f025bcdfcd9a278f419284c979dc4","head":{"label":"GordanMasic:homeworkW12D03","ref":"homeworkW12D03","sha":"5eedc327d16f025bcdfcd9a278f419284c979dc4","user":{"login":"GordanMasic","id":12545850,"avatar_url":"https://avatars.githubusercontent.com/u/12545850?v=3","gravatar_id":"","url":"https://api.github.com/users/GordanMasic","html_url":"https://github.com/GordanMasic","followers_url":"https://api.github.com/users/GordanMasic/followers","following_url":"https://api.github.com/users/GordanMasic/following{/other_user}","gists_url":"https://api.github.com/users/GordanMasic/gists{/gist_id}","starred_url":"https://api.github.com/users/GordanMasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordanMasic/subscriptions","organizations_url":"https://api.github.com/users/GordanMasic/orgs","repos_url":"https://api.github.com/users/GordanMasic/repos","events_url":"https://api.github.com/users/GordanMasic/events{/privacy}","received_events_url":"https://api.github.com/users/GordanMasic/received_events","type":"User","site_admin":false},"repo":{"id":37626105,"name":"homeworks","full_name":"GordanMasic/homeworks","owner":{"login":"GordanMasic","id":12545850,"avatar_url":"https://avatars.githubusercontent.com/u/12545850?v=3","gravatar_id":"","url":"https://api.github.com/users/GordanMasic","html_url":"https://github.com/GordanMasic","followers_url":"https://api.github.com/users/GordanMasic/followers","following_url":"https://api.github.com/users/GordanMasic/following{/other_user}","gists_url":"https://api.github.com/users/GordanMasic/gists{/gist_id}","starred_url":"https://api.github.com/users/GordanMasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordanMasic/subscriptions","organizations_url":"https://api.github.com/users/GordanMasic/orgs","repos_url":"https://api.github.com/users/GordanMasic/repos","events_url":"https://api.github.com/users/GordanMasic/events{/privacy}","received_events_url":"https://api.github.com/users/GordanMasic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GordanMasic/homeworks","description":"","fork":false,"url":"https://api.github.com/repos/GordanMasic/homeworks","forks_url":"https://api.github.com/repos/GordanMasic/homeworks/forks","keys_url":"https://api.github.com/repos/GordanMasic/homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GordanMasic/homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GordanMasic/homeworks/teams","hooks_url":"https://api.github.com/repos/GordanMasic/homeworks/hooks","issue_events_url":"https://api.github.com/repos/GordanMasic/homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/GordanMasic/homeworks/events","assignees_url":"https://api.github.com/repos/GordanMasic/homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/GordanMasic/homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/GordanMasic/homeworks/tags","blobs_url":"https://api.github.com/repos/GordanMasic/homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GordanMasic/homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GordanMasic/homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/GordanMasic/homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GordanMasic/homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/GordanMasic/homeworks/languages","stargazers_url":"https://api.github.com/repos/GordanMasic/homeworks/stargazers","contributors_url":"https://api.github.com/repos/GordanMasic/homeworks/contributors","subscribers_url":"https://api.github.com/repos/GordanMasic/homeworks/subscribers","subscription_url":"https://api.github.com/repos/GordanMasic/homeworks/subscription","commits_url":"https://api.github.com/repos/GordanMasic/homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/GordanMasic/homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/GordanMasic/homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/GordanMasic/homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/GordanMasic/homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/GordanMasic/homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GordanMasic/homeworks/merges","archive_url":"https://api.github.com/repos/GordanMasic/homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GordanMasic/homeworks/downloads","issues_url":"https://api.github.com/repos/GordanMasic/homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/GordanMasic/homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/GordanMasic/homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/GordanMasic/homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GordanMasic/homeworks/labels{/name}","releases_url":"https://api.github.com/repos/GordanMasic/homeworks/releases{/id}","created_at":"2015-06-17T23:18:23Z","updated_at":"2015-06-21T22:23:15Z","pushed_at":"2015-08-08T08:56:26Z","git_url":"git://github.com/GordanMasic/homeworks.git","ssh_url":"git@github.com:GordanMasic/homeworks.git","clone_url":"https://github.com/GordanMasic/homeworks.git","svn_url":"https://github.com/GordanMasic/homeworks","homepage":null,"size":8644,"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":"GordanMasic:master","ref":"master","sha":"c08c1bb57b7f2837b74545b8ee4a45e733c068d4","user":{"login":"GordanMasic","id":12545850,"avatar_url":"https://avatars.githubusercontent.com/u/12545850?v=3","gravatar_id":"","url":"https://api.github.com/users/GordanMasic","html_url":"https://github.com/GordanMasic","followers_url":"https://api.github.com/users/GordanMasic/followers","following_url":"https://api.github.com/users/GordanMasic/following{/other_user}","gists_url":"https://api.github.com/users/GordanMasic/gists{/gist_id}","starred_url":"https://api.github.com/users/GordanMasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordanMasic/subscriptions","organizations_url":"https://api.github.com/users/GordanMasic/orgs","repos_url":"https://api.github.com/users/GordanMasic/repos","events_url":"https://api.github.com/users/GordanMasic/events{/privacy}","received_events_url":"https://api.github.com/users/GordanMasic/received_events","type":"User","site_admin":false},"repo":{"id":37626105,"name":"homeworks","full_name":"GordanMasic/homeworks","owner":{"login":"GordanMasic","id":12545850,"avatar_url":"https://avatars.githubusercontent.com/u/12545850?v=3","gravatar_id":"","url":"https://api.github.com/users/GordanMasic","html_url":"https://github.com/GordanMasic","followers_url":"https://api.github.com/users/GordanMasic/followers","following_url":"https://api.github.com/users/GordanMasic/following{/other_user}","gists_url":"https://api.github.com/users/GordanMasic/gists{/gist_id}","starred_url":"https://api.github.com/users/GordanMasic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GordanMasic/subscriptions","organizations_url":"https://api.github.com/users/GordanMasic/orgs","repos_url":"https://api.github.com/users/GordanMasic/repos","events_url":"https://api.github.com/users/GordanMasic/events{/privacy}","received_events_url":"https://api.github.com/users/GordanMasic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GordanMasic/homeworks","description":"","fork":false,"url":"https://api.github.com/repos/GordanMasic/homeworks","forks_url":"https://api.github.com/repos/GordanMasic/homeworks/forks","keys_url":"https://api.github.com/repos/GordanMasic/homeworks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GordanMasic/homeworks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GordanMasic/homeworks/teams","hooks_url":"https://api.github.com/repos/GordanMasic/homeworks/hooks","issue_events_url":"https://api.github.com/repos/GordanMasic/homeworks/issues/events{/number}","events_url":"https://api.github.com/repos/GordanMasic/homeworks/events","assignees_url":"https://api.github.com/repos/GordanMasic/homeworks/assignees{/user}","branches_url":"https://api.github.com/repos/GordanMasic/homeworks/branches{/branch}","tags_url":"https://api.github.com/repos/GordanMasic/homeworks/tags","blobs_url":"https://api.github.com/repos/GordanMasic/homeworks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GordanMasic/homeworks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GordanMasic/homeworks/git/refs{/sha}","trees_url":"https://api.github.com/repos/GordanMasic/homeworks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GordanMasic/homeworks/statuses/{sha}","languages_url":"https://api.github.com/repos/GordanMasic/homeworks/languages","stargazers_url":"https://api.github.com/repos/GordanMasic/homeworks/stargazers","contributors_url":"https://api.github.com/repos/GordanMasic/homeworks/contributors","subscribers_url":"https://api.github.com/repos/GordanMasic/homeworks/subscribers","subscription_url":"https://api.github.com/repos/GordanMasic/homeworks/subscription","commits_url":"https://api.github.com/repos/GordanMasic/homeworks/commits{/sha}","git_commits_url":"https://api.github.com/repos/GordanMasic/homeworks/git/commits{/sha}","comments_url":"https://api.github.com/repos/GordanMasic/homeworks/comments{/number}","issue_comment_url":"https://api.github.com/repos/GordanMasic/homeworks/issues/comments{/number}","contents_url":"https://api.github.com/repos/GordanMasic/homeworks/contents/{+path}","compare_url":"https://api.github.com/repos/GordanMasic/homeworks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GordanMasic/homeworks/merges","archive_url":"https://api.github.com/repos/GordanMasic/homeworks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GordanMasic/homeworks/downloads","issues_url":"https://api.github.com/repos/GordanMasic/homeworks/issues{/number}","pulls_url":"https://api.github.com/repos/GordanMasic/homeworks/pulls{/number}","milestones_url":"https://api.github.com/repos/GordanMasic/homeworks/milestones{/number}","notifications_url":"https://api.github.com/repos/GordanMasic/homeworks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GordanMasic/homeworks/labels{/name}","releases_url":"https://api.github.com/repos/GordanMasic/homeworks/releases{/id}","created_at":"2015-06-17T23:18:23Z","updated_at":"2015-06-21T22:23:15Z","pushed_at":"2015-08-08T08:56:26Z","git_url":"git://github.com/GordanMasic/homeworks.git","ssh_url":"git@github.com:GordanMasic/homeworks.git","clone_url":"https://github.com/GordanMasic/homeworks.git","svn_url":"https://github.com/GordanMasic/homeworks","homepage":null,"size":8644,"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/GordanMasic/homeworks/pulls/17"},"html":{"href":"https://github.com/GordanMasic/homeworks/pull/17"},"issue":{"href":"https://api.github.com/repos/GordanMasic/homeworks/issues/17"},"comments":{"href":"https://api.github.com/repos/GordanMasic/homeworks/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/GordanMasic/homeworks/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/GordanMasic/homeworks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GordanMasic/homeworks/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/GordanMasic/homeworks/statuses/5eedc327d16f025bcdfcd9a278f419284c979dc4"}}}}