{"action":"created","issue":{"url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/374","repository_url":"https://api.github.com/repos/SpineEventEngine/core-java","labels_url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/374/comments","events_url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/374/events","html_url":"https://github.com/SpineEventEngine/core-java/pull/374","id":212414686,"number":374,"title":"Prepare validation kit","user":{"login":"IlliaShepilov","id":24410839,"avatar_url":"https://avatars3.githubusercontent.com/u/24410839?v=3","gravatar_id":"","url":"https://api.github.com/users/IlliaShepilov","html_url":"https://github.com/IlliaShepilov","followers_url":"https://api.github.com/users/IlliaShepilov/followers","following_url":"https://api.github.com/users/IlliaShepilov/following{/other_user}","gists_url":"https://api.github.com/users/IlliaShepilov/gists{/gist_id}","starred_url":"https://api.github.com/users/IlliaShepilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlliaShepilov/subscriptions","organizations_url":"https://api.github.com/users/IlliaShepilov/orgs","repos_url":"https://api.github.com/users/IlliaShepilov/repos","events_url":"https://api.github.com/users/IlliaShepilov/events{/privacy}","received_events_url":"https://api.github.com/users/IlliaShepilov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"IlliaShepilov","id":24410839,"avatar_url":"https://avatars3.githubusercontent.com/u/24410839?v=3","gravatar_id":"","url":"https://api.github.com/users/IlliaShepilov","html_url":"https://github.com/IlliaShepilov","followers_url":"https://api.github.com/users/IlliaShepilov/followers","following_url":"https://api.github.com/users/IlliaShepilov/following{/other_user}","gists_url":"https://api.github.com/users/IlliaShepilov/gists{/gist_id}","starred_url":"https://api.github.com/users/IlliaShepilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlliaShepilov/subscriptions","organizations_url":"https://api.github.com/users/IlliaShepilov/orgs","repos_url":"https://api.github.com/users/IlliaShepilov/repos","events_url":"https://api.github.com/users/IlliaShepilov/events{/privacy}","received_events_url":"https://api.github.com/users/IlliaShepilov/received_events","type":"User","site_admin":false},"assignees":[{"login":"IlliaShepilov","id":24410839,"avatar_url":"https://avatars3.githubusercontent.com/u/24410839?v=3","gravatar_id":"","url":"https://api.github.com/users/IlliaShepilov","html_url":"https://github.com/IlliaShepilov","followers_url":"https://api.github.com/users/IlliaShepilov/followers","following_url":"https://api.github.com/users/IlliaShepilov/following{/other_user}","gists_url":"https://api.github.com/users/IlliaShepilov/gists{/gist_id}","starred_url":"https://api.github.com/users/IlliaShepilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlliaShepilov/subscriptions","organizations_url":"https://api.github.com/users/IlliaShepilov/orgs","repos_url":"https://api.github.com/users/IlliaShepilov/repos","events_url":"https://api.github.com/users/IlliaShepilov/events{/privacy}","received_events_url":"https://api.github.com/users/IlliaShepilov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2017-03-07T12:12:13Z","updated_at":"2017-03-28T17:03:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SpineEventEngine/core-java/pulls/374","html_url":"https://github.com/SpineEventEngine/core-java/pull/374","diff_url":"https://github.com/SpineEventEngine/core-java/pull/374.diff","patch_url":"https://github.com/SpineEventEngine/core-java/pull/374.patch"},"body":"Summary of changes:\r\n\r\n- Created the `ValidatingBuilder` interface.\r\n- Created the `AbstractValidatingBuilder` class.\r\n- Created `ListStringifier`.\r\n- Created the tests for the `ListStringifier` class.\r\n\r\nThe usage of the `ListStringifier`:\r\n```java\r\n// Stringifier creation.\r\nfinal Stringifier<List<Integer>> listStringifier = Stringifiers.listStringifier();\r\n```\r\n\r\n```java\r\n// The registration of the stringifier.\r\nfinal Stringifier<List<Integer>> listStringifer = Stringifiers.listStringifier();\r\nfinal Type type = TypeToken<List<Integer>>(){}.getType();\r\nStringifierRegistry.getInstance().register(listStringifier, type);\r\n\r\n// Obtain already registered stringifier.\r\nfinal Stringifier<List<Integer>> listStringifier = StringifierRegistry.getInstance().getStringifier(type);\r\n\r\n// Convert to string.\r\nfinal List<Integer> listToConvert = newArrayList(1, 2, 3);\r\n\r\n// The result is: \\\"1\\\",\\\"2\\\",\\\"3\\\".\r\nfinal String convertedString = listStringifer.toString(listToConvert);\r\n\r\n// Convert from string.\r\nfinal String stringToConvert = ...\r\nfinal List<Integer> convertedList = listStringifier.fromString(stringToConvert);\r\n```"},"comment":{"url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/comments/289837102","html_url":"https://github.com/SpineEventEngine/core-java/pull/374#issuecomment-289837102","issue_url":"https://api.github.com/repos/SpineEventEngine/core-java/issues/374","id":289837102,"user":{"login":"IlliaShepilov","id":24410839,"avatar_url":"https://avatars3.githubusercontent.com/u/24410839?v=3","gravatar_id":"","url":"https://api.github.com/users/IlliaShepilov","html_url":"https://github.com/IlliaShepilov","followers_url":"https://api.github.com/users/IlliaShepilov/followers","following_url":"https://api.github.com/users/IlliaShepilov/following{/other_user}","gists_url":"https://api.github.com/users/IlliaShepilov/gists{/gist_id}","starred_url":"https://api.github.com/users/IlliaShepilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IlliaShepilov/subscriptions","organizations_url":"https://api.github.com/users/IlliaShepilov/orgs","repos_url":"https://api.github.com/users/IlliaShepilov/repos","events_url":"https://api.github.com/users/IlliaShepilov/events{/privacy}","received_events_url":"https://api.github.com/users/IlliaShepilov/received_events","type":"User","site_admin":false},"created_at":"2017-03-28T17:03:29Z","updated_at":"2017-03-28T17:03:29Z","body":"@armiol PTAL."}}
{"actor":{"display_login":"IlliaShepilov"}}