payload: {"action":"created","comment":{"url":"https://api.github.com/repos/aytel/javaHSE19/pulls/comments/291823012","pull_request_review_id":247385844,"id":291823012,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5MTgyMzAxMg==","diff_hunk":"@@ -0,0 +1,71 @@\n+package com.aytel;\n+\n+import org.jetbrains.annotations.NotNull;\n+\n+import java.util.Iterator;\n+\n+/** Double-linked intrusive list created to keep sequence of objects, iterate over them and erase them. */\n+class IntrusiveList<T extends IntrusiveList.IntrusiveContainer> implements Iterable<T> {\n+    private IntrusiveNode<T> root = null;\n+\n+    void add(T container) {\n+        var node = new IntrusiveNode<>(container);\n+        container.node = node;\n+        container.list = this;\n+\n+        node.next = root;\n+        if (root != null) {\n+            root.prev = node;\n+        }\n+\n+        root = node;\n+    }\n+\n+    @NotNull\n+    @Override\n+    public Iterator<T> iterator() {\n+        return new Iterator<>() {\n+            private IntrusiveNode<T> current = root;\n+\n+            @Override\n+            public boolean hasNext() {\n+                return current != null;\n+            }\n+\n+            @Override\n+            public T next() {\n+                T result = current.content;\n+                current = current.next;\n+                return result;\n+            }\n+        };\n+    }\n+\n+    static class IntrusiveNode<T> {\n+        IntrusiveNode<T> prev = null, next = null;\n+        final T content;\n+\n+        IntrusiveNode(T content) {\n+            this.content = content;\n+        }\n+    }\n+\n+    static abstract class IntrusiveContainer<K extends IntrusiveContainer<K>> {","path":"hw8.java/src/main/java/com/aytel/IntrusiveList.java","position":53,"original_position":53,"commit_id":"f615e7ad3915d7e61fd98d90cd35b5289d317690","original_commit_id":"f615e7ad3915d7e61fd98d90cd35b5289d317690","user":{"login":"aytel","id":31612838,"node_id":"MDQ6VXNlcjMxNjEyODM4","avatar_url":"https://avatars1.githubusercontent.com/u/31612838?v=4","gravatar_id":"","url":"https://api.github.com/users/aytel","html_url":"https://github.com/aytel","followers_url":"https://api.github.com/users/aytel/followers","following_url":"https://api.github.com/users/aytel/following{/other_user}","gists_url":"https://api.github.com/users/aytel/gists{/gist_id}","starred_url":"https://api.github.com/users/aytel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aytel/subscriptions","organizations_url":"https://api.github.com/users/aytel/orgs","repos_url":"https://api.github.com/users/aytel/repos","events_url":"https://api.github.com/users/aytel/events{/privacy}","received_events_url":"https://api.github.com/users/aytel/received_events","type":"User","site_admin":false},"body":"Ну да. IntrusiveContainer сам по себе ничем не является, элементы, которые я хочу хранить в IntrusiveList, должны сами этими контейнерами являться.","created_at":"2019-06-09T00:10:19Z","updated_at":"2019-06-09T00:10:20Z","html_url":"https://github.com/aytel/javaHSE19/pull/13#discussion_r291823012","pull_request_url":"https://api.github.com/repos/aytel/javaHSE19/pulls/13","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/aytel/javaHSE19/pulls/comments/291823012"},"html":{"href":"https://github.com/aytel/javaHSE19/pull/13#discussion_r291823012"},"pull_request":{"href":"https://api.github.com/repos/aytel/javaHSE19/pulls/13"}},"in_reply_to_id":289416069},"pull_request":{"url":"https://api.github.com/repos/aytel/javaHSE19/pulls/13","id":280976112,"node_id":"MDExOlB1bGxSZXF1ZXN0MjgwOTc2MTEy","html_url":"https://github.com/aytel/javaHSE19/pull/13","diff_url":"https://github.com/aytel/javaHSE19/pull/13.diff","patch_url":"https://github.com/aytel/javaHSE19/pull/13.patch","issue_url":"https://api.github.com/repos/aytel/javaHSE19/issues/13","number":13,"state":"open","locked":false,"title":"Hw8.java","user":{"login":"aytel","id":31612838,"node_id":"MDQ6VXNlcjMxNjEyODM4","avatar_url":"https://avatars1.githubusercontent.com/u/31612838?v=4","gravatar_id":"","url":"https://api.github.com/users/aytel","html_url":"https://github.com/aytel","followers_url":"https://api.github.com/users/aytel/followers","following_url":"https://api.github.com/users/aytel/following{/other_user}","gists_url":"https://api.github.com/users/aytel/gists{/gist_id}","starred_url":"https://api.github.com/users/aytel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aytel/subscriptions","organizations_url":"https://api.github.com/users/aytel/orgs","repos_url":"https://api.github.com/users/aytel/repos","events_url":"https://api.github.com/users/aytel/events{/privacy}","received_events_url":"https://api.github.com/users/aytel/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-05-21T22:49:08Z","updated_at":"2019-06-09T00:10:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57245f7445aae4b955a3dcfc297a4562f224a787","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/aytel/javaHSE19/pulls/13/commits","review_comments_url":"https://api.github.com/repos/aytel/javaHSE19/pulls/13/comments","review_comment_url":"https://api.github.com/repos/aytel/javaHSE19/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aytel/javaHSE19/issues/13/comments","statuses_url":"https://api.github.com/repos/aytel/javaHSE19/statuses/f615e7ad3915d7e61fd98d90cd35b5289d317690","head":{"label":"aytel:hw8.java","ref":"hw8.java","sha":"f615e7ad3915d7e61fd98d90cd35b5289d317690","user":{"login":"aytel","id":31612838,"node_id":"MDQ6VXNlcjMxNjEyODM4","avatar_url":"https://avatars1.githubusercontent.com/u/31612838?v=4","gravatar_id":"","url":"https://api.github.com/users/aytel","html_url":"https://github.com/aytel","followers_url":"https://api.github.com/users/aytel/followers","following_url":"https://api.github.com/users/aytel/following{/other_user}","gists_url":"https://api.github.com/users/aytel/gists{/gist_id}","starred_url":"https://api.github.com/users/aytel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aytel/subscriptions","organizations_url":"https://api.github.com/users/aytel/orgs","repos_url":"https://api.github.com/users/aytel/repos","events_url":"https://api.github.com/users/aytel/events{/privacy}","received_events_url":"https://api.github.com/users/aytel/received_events","type":"User","site_admin":false},"repo":{"id":166214381,"node_id":"MDEwOlJlcG9zaXRvcnkxNjYyMTQzODE=","name":"javaHSE19","full_name":"aytel/javaHSE19","private":false,"owner":{"login":"aytel","id":31612838,"node_id":"MDQ6VXNlcjMxNjEyODM4","avatar_url":"https://avatars1.githubusercontent.com/u/31612838?v=4","gravatar_id":"","url":"https://api.github.com/users/aytel","html_url":"https://github.com/aytel","followers_url":"https://api.github.com/users/aytel/followers","following_url":"https://api.github.com/users/aytel/following{/other_user}","gists_url":"https://api.github.com/users/aytel/gists{/gist_id}","starred_url":"https://api.github.com/users/aytel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aytel/subscriptions","organizations_url":"https://api.github.com/users/aytel/orgs","repos_url":"https://api.github.com/users/aytel/repos","events_url":"https://api.github.com/users/aytel/events{/privacy}","received_events_url":"https://api.github.com/users/aytel/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aytel/javaHSE19","description":null,"fork":false,"url":"https://api.github.com/repos/aytel/javaHSE19","forks_url":"https://api.github.com/repos/aytel/javaHSE19/forks","keys_url":"https://api.github.com/repos/aytel/javaHSE19/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aytel/javaHSE19/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aytel/javaHSE19/teams","hooks_url":"https://api.github.com/repos/aytel/javaHSE19/hooks","issue_events_url":"https://api.github.com/repos/aytel/javaHSE19/issues/events{/number}","events_url":"https://api.github.com/repos/aytel/javaHSE19/events","assignees_url":"https://api.github.com/repos/aytel/javaHSE19/assignees{/user}","branches_url":"https://api.github.com/repos/aytel/javaHSE19/branches{/branch}","tags_url":"https://api.github.com/repos/aytel/javaHSE19/tags","blobs_url":"https://api.github.com/repos/aytel/javaHSE19/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aytel/javaHSE19/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aytel/javaHSE19/git/refs{/sha}","trees_url":"https://api.github.com/repos/aytel/javaHSE19/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aytel/javaHSE19/statuses/{sha}","languages_url":"https://api.github.com/repos/aytel/javaHSE19/languages","stargazers_url":"https://api.github.com/repos/aytel/javaHSE19/stargazers","contributors_url":"https://api.github.com/repos/aytel/javaHSE19/contributors","subscribers_url":"https://api.github.com/repos/aytel/javaHSE19/subscribers","subscription_url":"https://api.github.com/repos/aytel/javaHSE19/subscription","commits_url":"https://api.github.com/repos/aytel/javaHSE19/commits{/sha}","git_commits_url":"https://api.github.com/repos/aytel/javaHSE19/git/commits{/sha}","comments_url":"https://api.github.com/repos/aytel/javaHSE19/comments{/number}","issue_comment_url":"https://api.github.com/repos/aytel/javaHSE19/issues/comments{/number}","contents_url":"https://api.github.com/repos/aytel/javaHSE19/contents/{+path}","compare_url":"https://api.github.com/repos/aytel/javaHSE19/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aytel/javaHSE19/merges","archive_url":"https://api.github.com/repos/aytel/javaHSE19/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aytel/javaHSE19/downloads","issues_url":"https://api.github.com/repos/aytel/javaHSE19/issues{/number}","pulls_url":"https://api.github.com/repos/aytel/javaHSE19/pulls{/number}","milestones_url":"https://api.github.com/repos/aytel/javaHSE19/milestones{/number}","notifications_url":"https://api.github.com/repos/aytel/javaHSE19/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aytel/javaHSE19/labels{/name}","releases_url":"https://api.github.com/repos/aytel/javaHSE19/releases{/id}","deployments_url":"https://api.github.com/repos/aytel/javaHSE19/deployments","created_at":"2019-01-17T11:26:53Z","updated_at":"2019-06-07T15:57:55Z","pushed_at":"2019-06-08T23:57:34Z","git_url":"git://github.com/aytel/javaHSE19.git","ssh_url":"git@github.com:aytel/javaHSE19.git","clone_url":"https://github.com/aytel/javaHSE19.git","svn_url":"https://github.com/aytel/javaHSE19","homepage":null,"size":251,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"aytel:master","ref":"master","sha":"01efbbe64ad8dd6cb0cba4b38beee72046091358","user":{"login":"aytel","id":31612838,"node_id":"MDQ6VXNlcjMxNjEyODM4","avatar_url":"https://avatars1.githubusercontent.com/u/31612838?v=4","gravatar_id":"","url":"https://api.github.com/users/aytel","html_url":"https://github.com/aytel","followers_url":"https://api.github.com/users/aytel/followers","following_url":"https://api.github.com/users/aytel/following{/other_user}","gists_url":"https://api.github.com/users/aytel/gists{/gist_id}","starred_url":"https://api.github.com/users/aytel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aytel/subscriptions","organizations_url":"https://api.github.com/users/aytel/orgs","repos_url":"https://api.github.com/users/aytel/repos","events_url":"https://api.github.com/users/aytel/events{/privacy}","received_events_url":"https://api.github.com/users/aytel/received_events","type":"User","site_admin":false},"repo":{"id":166214381,"node_id":"MDEwOlJlcG9zaXRvcnkxNjYyMTQzODE=","name":"javaHSE19","full_name":"aytel/javaHSE19","private":false,"owner":{"login":"aytel","id":31612838,"node_id":"MDQ6VXNlcjMxNjEyODM4","avatar_url":"https://avatars1.githubusercontent.com/u/31612838?v=4","gravatar_id":"","url":"https://api.github.com/users/aytel","html_url":"https://github.com/aytel","followers_url":"https://api.github.com/users/aytel/followers","following_url":"https://api.github.com/users/aytel/following{/other_user}","gists_url":"https://api.github.com/users/aytel/gists{/gist_id}","starred_url":"https://api.github.com/users/aytel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aytel/subscriptions","organizations_url":"https://api.github.com/users/aytel/orgs","repos_url":"https://api.github.com/users/aytel/repos","events_url":"https://api.github.com/users/aytel/events{/privacy}","received_events_url":"https://api.github.com/users/aytel/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aytel/javaHSE19","description":null,"fork":false,"url":"https://api.github.com/repos/aytel/javaHSE19","forks_url":"https://api.github.com/repos/aytel/javaHSE19/forks","keys_url":"https://api.github.com/repos/aytel/javaHSE19/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aytel/javaHSE19/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aytel/javaHSE19/teams","hooks_url":"https://api.github.com/repos/aytel/javaHSE19/hooks","issue_events_url":"https://api.github.com/repos/aytel/javaHSE19/issues/events{/number}","events_url":"https://api.github.com/repos/aytel/javaHSE19/events","assignees_url":"https://api.github.com/repos/aytel/javaHSE19/assignees{/user}","branches_url":"https://api.github.com/repos/aytel/javaHSE19/branches{/branch}","tags_url":"https://api.github.com/repos/aytel/javaHSE19/tags","blobs_url":"https://api.github.com/repos/aytel/javaHSE19/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aytel/javaHSE19/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aytel/javaHSE19/git/refs{/sha}","trees_url":"https://api.github.com/repos/aytel/javaHSE19/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aytel/javaHSE19/statuses/{sha}","languages_url":"https://api.github.com/repos/aytel/javaHSE19/languages","stargazers_url":"https://api.github.com/repos/aytel/javaHSE19/stargazers","contributors_url":"https://api.github.com/repos/aytel/javaHSE19/contributors","subscribers_url":"https://api.github.com/repos/aytel/javaHSE19/subscribers","subscription_url":"https://api.github.com/repos/aytel/javaHSE19/subscription","commits_url":"https://api.github.com/repos/aytel/javaHSE19/commits{/sha}","git_commits_url":"https://api.github.com/repos/aytel/javaHSE19/git/commits{/sha}","comments_url":"https://api.github.com/repos/aytel/javaHSE19/comments{/number}","issue_comment_url":"https://api.github.com/repos/aytel/javaHSE19/issues/comments{/number}","contents_url":"https://api.github.com/repos/aytel/javaHSE19/contents/{+path}","compare_url":"https://api.github.com/repos/aytel/javaHSE19/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aytel/javaHSE19/merges","archive_url":"https://api.github.com/repos/aytel/javaHSE19/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aytel/javaHSE19/downloads","issues_url":"https://api.github.com/repos/aytel/javaHSE19/issues{/number}","pulls_url":"https://api.github.com/repos/aytel/javaHSE19/pulls{/number}","milestones_url":"https://api.github.com/repos/aytel/javaHSE19/milestones{/number}","notifications_url":"https://api.github.com/repos/aytel/javaHSE19/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aytel/javaHSE19/labels{/name}","releases_url":"https://api.github.com/repos/aytel/javaHSE19/releases{/id}","deployments_url":"https://api.github.com/repos/aytel/javaHSE19/deployments","created_at":"2019-01-17T11:26:53Z","updated_at":"2019-06-07T15:57:55Z","pushed_at":"2019-06-08T23:57:34Z","git_url":"git://github.com/aytel/javaHSE19.git","ssh_url":"git@github.com:aytel/javaHSE19.git","clone_url":"https://github.com/aytel/javaHSE19.git","svn_url":"https://github.com/aytel/javaHSE19","homepage":null,"size":251,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"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":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aytel/javaHSE19/pulls/13"},"html":{"href":"https://github.com/aytel/javaHSE19/pull/13"},"issue":{"href":"https://api.github.com/repos/aytel/javaHSE19/issues/13"},"comments":{"href":"https://api.github.com/repos/aytel/javaHSE19/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/aytel/javaHSE19/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/aytel/javaHSE19/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aytel/javaHSE19/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/aytel/javaHSE19/statuses/f615e7ad3915d7e61fd98d90cd35b5289d317690"}},"author_association":"OWNER"}}
other: {"actor":{"display_login":"aytel"}}