{"action":"created","comment":{"url":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/comments/296445647","pull_request_review_id":253095078,"id":296445647,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5NjQ0NTY0Nw==","diff_hunk":"@@ -0,0 +1,67 @@\n+package racingcargame.model;\n+\n+import java.util.Objects;\n+\n+public class Car implements Comparable<Car> {\n+    private static final int MAXIMUM_NAME_LENGTH = 5;\n+\n+    private final String name;\n+    private int position = 0;\n+\n+    public Car(String name) {\n+        checkNameLength(name);\n+        this.name = name;\n+    }\n+\n+    public Car(String name, int position) {\n+        this.name = name;\n+        this.position = position;\n+    }\n+\n+    private static void checkNameLength(String name) {\n+        if (name.isEmpty() || name.length() > MAXIMUM_NAME_LENGTH) {\n+            throw new IllegalArgumentException();\n+        }\n+    }\n+\n+    public String getName() {\n+        return name;\n+    }\n+\n+    public int getPosition() {\n+        return position;\n+    }\n+\n+    public Car update(int randomNumber) {\n+        if (randomNumber > 4) {\n+            return new Car(name, position + 1);\n+        }\n+        return new Car(name, position);","path":"src/main/java/racingcargame/model/Car.java","position":39,"original_position":39,"commit_id":"1a1024bc6968f7eea651a501c8c5762a22c45b8b","original_commit_id":"1a1024bc6968f7eea651a501c8c5762a22c45b8b","user":{"login":"kimjungmin-developer","id":50177674,"node_id":"MDQ6VXNlcjUwMTc3Njc0","avatar_url":"https://avatars0.githubusercontent.com/u/50177674?v=4","gravatar_id":"","url":"https://api.github.com/users/kimjungmin-developer","html_url":"https://github.com/kimjungmin-developer","followers_url":"https://api.github.com/users/kimjungmin-developer/followers","following_url":"https://api.github.com/users/kimjungmin-developer/following{/other_user}","gists_url":"https://api.github.com/users/kimjungmin-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/kimjungmin-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimjungmin-developer/subscriptions","organizations_url":"https://api.github.com/users/kimjungmin-developer/orgs","repos_url":"https://api.github.com/users/kimjungmin-developer/repos","events_url":"https://api.github.com/users/kimjungmin-developer/events{/privacy}","received_events_url":"https://api.github.com/users/kimjungmin-developer/received_events","type":"User","site_admin":false},"body":"혹시 Value Object라면 값이 바뀔때 새로운 객체를 생성해주어서 그런 것인가요?","created_at":"2019-06-22T13:21:06Z","updated_at":"2019-06-22T13:21:06Z","html_url":"https://github.com/woowacourse/java-racingcar/pull/39#discussion_r296445647","pull_request_url":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/39","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/comments/296445647"},"html":{"href":"https://github.com/woowacourse/java-racingcar/pull/39#discussion_r296445647"},"pull_request":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/39"}},"in_reply_to_id":296438742},"pull_request":{"url":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/39","id":277707637,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc3NzA3NjM3","html_url":"https://github.com/woowacourse/java-racingcar/pull/39","diff_url":"https://github.com/woowacourse/java-racingcar/pull/39.diff","patch_url":"https://github.com/woowacourse/java-racingcar/pull/39.patch","issue_url":"https://api.github.com/repos/woowacourse/java-racingcar/issues/39","number":39,"state":"open","locked":false,"title":"[자동차 경주 게임] 제이엠 미션 제출합니다.","user":{"login":"kimjungmin-developer","id":50177674,"node_id":"MDQ6VXNlcjUwMTc3Njc0","avatar_url":"https://avatars0.githubusercontent.com/u/50177674?v=4","gravatar_id":"","url":"https://api.github.com/users/kimjungmin-developer","html_url":"https://github.com/kimjungmin-developer","followers_url":"https://api.github.com/users/kimjungmin-developer/followers","following_url":"https://api.github.com/users/kimjungmin-developer/following{/other_user}","gists_url":"https://api.github.com/users/kimjungmin-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/kimjungmin-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimjungmin-developer/subscriptions","organizations_url":"https://api.github.com/users/kimjungmin-developer/orgs","repos_url":"https://api.github.com/users/kimjungmin-developer/repos","events_url":"https://api.github.com/users/kimjungmin-developer/events{/privacy}","received_events_url":"https://api.github.com/users/kimjungmin-developer/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-05-10T10:00:07Z","updated_at":"2019-06-22T13:21:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"75ceec768c36da383a43c7f2db2b771223aadc25","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/39/commits","review_comments_url":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/39/comments","review_comment_url":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woowacourse/java-racingcar/issues/39/comments","statuses_url":"https://api.github.com/repos/woowacourse/java-racingcar/statuses/1a1024bc6968f7eea651a501c8c5762a22c45b8b","head":{"label":"kimjungmin-developer:kimjungmin-developer","ref":"kimjungmin-developer","sha":"1a1024bc6968f7eea651a501c8c5762a22c45b8b","user":{"login":"kimjungmin-developer","id":50177674,"node_id":"MDQ6VXNlcjUwMTc3Njc0","avatar_url":"https://avatars0.githubusercontent.com/u/50177674?v=4","gravatar_id":"","url":"https://api.github.com/users/kimjungmin-developer","html_url":"https://github.com/kimjungmin-developer","followers_url":"https://api.github.com/users/kimjungmin-developer/followers","following_url":"https://api.github.com/users/kimjungmin-developer/following{/other_user}","gists_url":"https://api.github.com/users/kimjungmin-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/kimjungmin-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimjungmin-developer/subscriptions","organizations_url":"https://api.github.com/users/kimjungmin-developer/orgs","repos_url":"https://api.github.com/users/kimjungmin-developer/repos","events_url":"https://api.github.com/users/kimjungmin-developer/events{/privacy}","received_events_url":"https://api.github.com/users/kimjungmin-developer/received_events","type":"User","site_admin":false},"repo":{"id":185506152,"node_id":"MDEwOlJlcG9zaXRvcnkxODU1MDYxNTI=","name":"java-racingcar","full_name":"kimjungmin-developer/java-racingcar","private":false,"owner":{"login":"kimjungmin-developer","id":50177674,"node_id":"MDQ6VXNlcjUwMTc3Njc0","avatar_url":"https://avatars0.githubusercontent.com/u/50177674?v=4","gravatar_id":"","url":"https://api.github.com/users/kimjungmin-developer","html_url":"https://github.com/kimjungmin-developer","followers_url":"https://api.github.com/users/kimjungmin-developer/followers","following_url":"https://api.github.com/users/kimjungmin-developer/following{/other_user}","gists_url":"https://api.github.com/users/kimjungmin-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/kimjungmin-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimjungmin-developer/subscriptions","organizations_url":"https://api.github.com/users/kimjungmin-developer/orgs","repos_url":"https://api.github.com/users/kimjungmin-developer/repos","events_url":"https://api.github.com/users/kimjungmin-developer/events{/privacy}","received_events_url":"https://api.github.com/users/kimjungmin-developer/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kimjungmin-developer/java-racingcar","description":"자동차 경주 게임 미션 저장소","fork":true,"url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar","forks_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/forks","keys_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/teams","hooks_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/hooks","issue_events_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/issues/events{/number}","events_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/events","assignees_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/assignees{/user}","branches_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/branches{/branch}","tags_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/tags","blobs_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/git/refs{/sha}","trees_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/statuses/{sha}","languages_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/languages","stargazers_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/stargazers","contributors_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/contributors","subscribers_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/subscribers","subscription_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/subscription","commits_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/commits{/sha}","git_commits_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/git/commits{/sha}","comments_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/comments{/number}","issue_comment_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/issues/comments{/number}","contents_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/contents/{+path}","compare_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/merges","archive_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/downloads","issues_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/issues{/number}","pulls_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/pulls{/number}","milestones_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/milestones{/number}","notifications_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/labels{/name}","releases_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/releases{/id}","deployments_url":"https://api.github.com/repos/kimjungmin-developer/java-racingcar/deployments","created_at":"2019-05-08T01:40:49Z","updated_at":"2019-05-08T01:40:52Z","pushed_at":"2019-06-22T01:11:56Z","git_url":"git://github.com/kimjungmin-developer/java-racingcar.git","ssh_url":"git@github.com:kimjungmin-developer/java-racingcar.git","clone_url":"https://github.com/kimjungmin-developer/java-racingcar.git","svn_url":"https://github.com/kimjungmin-developer/java-racingcar","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"woowacourse:kimjungmin-developer","ref":"kimjungmin-developer","sha":"72e9cb8a8d67b7ef97fc647d3b49a663c622e705","user":{"login":"woowacourse","id":45747236,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NzQ3MjM2","avatar_url":"https://avatars2.githubusercontent.com/u/45747236?v=4","gravatar_id":"","url":"https://api.github.com/users/woowacourse","html_url":"https://github.com/woowacourse","followers_url":"https://api.github.com/users/woowacourse/followers","following_url":"https://api.github.com/users/woowacourse/following{/other_user}","gists_url":"https://api.github.com/users/woowacourse/gists{/gist_id}","starred_url":"https://api.github.com/users/woowacourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woowacourse/subscriptions","organizations_url":"https://api.github.com/users/woowacourse/orgs","repos_url":"https://api.github.com/users/woowacourse/repos","events_url":"https://api.github.com/users/woowacourse/events{/privacy}","received_events_url":"https://api.github.com/users/woowacourse/received_events","type":"Organization","site_admin":false},"repo":{"id":183384935,"node_id":"MDEwOlJlcG9zaXRvcnkxODMzODQ5MzU=","name":"java-racingcar","full_name":"woowacourse/java-racingcar","private":false,"owner":{"login":"woowacourse","id":45747236,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ1NzQ3MjM2","avatar_url":"https://avatars2.githubusercontent.com/u/45747236?v=4","gravatar_id":"","url":"https://api.github.com/users/woowacourse","html_url":"https://github.com/woowacourse","followers_url":"https://api.github.com/users/woowacourse/followers","following_url":"https://api.github.com/users/woowacourse/following{/other_user}","gists_url":"https://api.github.com/users/woowacourse/gists{/gist_id}","starred_url":"https://api.github.com/users/woowacourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woowacourse/subscriptions","organizations_url":"https://api.github.com/users/woowacourse/orgs","repos_url":"https://api.github.com/users/woowacourse/repos","events_url":"https://api.github.com/users/woowacourse/events{/privacy}","received_events_url":"https://api.github.com/users/woowacourse/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/woowacourse/java-racingcar","description":"자동차 경주 게임 미션 저장소","fork":false,"url":"https://api.github.com/repos/woowacourse/java-racingcar","forks_url":"https://api.github.com/repos/woowacourse/java-racingcar/forks","keys_url":"https://api.github.com/repos/woowacourse/java-racingcar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woowacourse/java-racingcar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woowacourse/java-racingcar/teams","hooks_url":"https://api.github.com/repos/woowacourse/java-racingcar/hooks","issue_events_url":"https://api.github.com/repos/woowacourse/java-racingcar/issues/events{/number}","events_url":"https://api.github.com/repos/woowacourse/java-racingcar/events","assignees_url":"https://api.github.com/repos/woowacourse/java-racingcar/assignees{/user}","branches_url":"https://api.github.com/repos/woowacourse/java-racingcar/branches{/branch}","tags_url":"https://api.github.com/repos/woowacourse/java-racingcar/tags","blobs_url":"https://api.github.com/repos/woowacourse/java-racingcar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woowacourse/java-racingcar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woowacourse/java-racingcar/git/refs{/sha}","trees_url":"https://api.github.com/repos/woowacourse/java-racingcar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woowacourse/java-racingcar/statuses/{sha}","languages_url":"https://api.github.com/repos/woowacourse/java-racingcar/languages","stargazers_url":"https://api.github.com/repos/woowacourse/java-racingcar/stargazers","contributors_url":"https://api.github.com/repos/woowacourse/java-racingcar/contributors","subscribers_url":"https://api.github.com/repos/woowacourse/java-racingcar/subscribers","subscription_url":"https://api.github.com/repos/woowacourse/java-racingcar/subscription","commits_url":"https://api.github.com/repos/woowacourse/java-racingcar/commits{/sha}","git_commits_url":"https://api.github.com/repos/woowacourse/java-racingcar/git/commits{/sha}","comments_url":"https://api.github.com/repos/woowacourse/java-racingcar/comments{/number}","issue_comment_url":"https://api.github.com/repos/woowacourse/java-racingcar/issues/comments{/number}","contents_url":"https://api.github.com/repos/woowacourse/java-racingcar/contents/{+path}","compare_url":"https://api.github.com/repos/woowacourse/java-racingcar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woowacourse/java-racingcar/merges","archive_url":"https://api.github.com/repos/woowacourse/java-racingcar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woowacourse/java-racingcar/downloads","issues_url":"https://api.github.com/repos/woowacourse/java-racingcar/issues{/number}","pulls_url":"https://api.github.com/repos/woowacourse/java-racingcar/pulls{/number}","milestones_url":"https://api.github.com/repos/woowacourse/java-racingcar/milestones{/number}","notifications_url":"https://api.github.com/repos/woowacourse/java-racingcar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woowacourse/java-racingcar/labels{/name}","releases_url":"https://api.github.com/repos/woowacourse/java-racingcar/releases{/id}","deployments_url":"https://api.github.com/repos/woowacourse/java-racingcar/deployments","created_at":"2019-04-25T07:54:58Z","updated_at":"2019-05-10T12:22:55Z","pushed_at":"2019-06-22T10:32:46Z","git_url":"git://github.com/woowacourse/java-racingcar.git","ssh_url":"git@github.com:woowacourse/java-racingcar.git","clone_url":"https://github.com/woowacourse/java-racingcar.git","svn_url":"https://github.com/woowacourse/java-racingcar","homepage":null,"size":648,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":50,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":null,"forks":50,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/39"},"html":{"href":"https://github.com/woowacourse/java-racingcar/pull/39"},"issue":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/issues/39"},"comments":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/woowacourse/java-racingcar/statuses/1a1024bc6968f7eea651a501c8c5762a22c45b8b"}},"author_association":"NONE"}}
{"actor":{"display_login":"kimjungmin-developer"}}