{"action":"created","comment":{"url":"https://api.github.com/repos/square/tape/pulls/comments/77543844","id":77543844,"diff_hunk":"@@ -11,36 +14,57 @@\n  * @param <T> The type of elements in the queue.\n  */\n public final class InMemoryObjectQueue<T> implements ObjectQueue<T> {\n-  private final Queue<T> tasks;\n+  // LinkedList can be used both as a List and Queue.\n+  private final LinkedList<T> entries;","path":"tape/src/main/java/com/squareup/tape/InMemoryObjectQueue.java","position":null,"original_position":17,"commit_id":"dd4b17b5ae41aee4bf2d40da80985e18c0a876d2","original_commit_id":"9108be3627acd0b868b557ded1ac6d45a6ee279e","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"body":"`peek(n)` can be implemented by default with `iterator()`","created_at":"2016-09-05T16:46:03Z","updated_at":"2016-09-05T16:46:03Z","html_url":"https://github.com/square/tape/pull/102#discussion_r77543844","pull_request_url":"https://api.github.com/repos/square/tape/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/square/tape/pulls/comments/77543844"},"html":{"href":"https://github.com/square/tape/pull/102#discussion_r77543844"},"pull_request":{"href":"https://api.github.com/repos/square/tape/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/square/tape/pulls/102","id":83886007,"html_url":"https://github.com/square/tape/pull/102","diff_url":"https://github.com/square/tape/pull/102.diff","patch_url":"https://github.com/square/tape/pull/102.patch","issue_url":"https://api.github.com/repos/square/tape/issues/102","number":102,"state":"open","locked":false,"title":"Promote FileObjectQueue methods to ObjectQueue","user":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"body":"Closes #25. Closes #26.","created_at":"2016-09-03T04:45:14Z","updated_at":"2016-09-05T16:46:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8af2f93e7494448215a43420bed2a5ca7a42d7e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/square/tape/pulls/102/commits","review_comments_url":"https://api.github.com/repos/square/tape/pulls/102/comments","review_comment_url":"https://api.github.com/repos/square/tape/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/tape/issues/102/comments","statuses_url":"https://api.github.com/repos/square/tape/statuses/dd4b17b5ae41aee4bf2d40da80985e18c0a876d2","head":{"label":"f2prateek:object","ref":"object","sha":"dd4b17b5ae41aee4bf2d40da80985e18c0a876d2","user":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"repo":{"id":67255951,"name":"tape","full_name":"f2prateek/tape","owner":{"login":"f2prateek","id":843979,"avatar_url":"https://avatars.githubusercontent.com/u/843979?v=3","gravatar_id":"","url":"https://api.github.com/users/f2prateek","html_url":"https://github.com/f2prateek","followers_url":"https://api.github.com/users/f2prateek/followers","following_url":"https://api.github.com/users/f2prateek/following{/other_user}","gists_url":"https://api.github.com/users/f2prateek/gists{/gist_id}","starred_url":"https://api.github.com/users/f2prateek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/f2prateek/subscriptions","organizations_url":"https://api.github.com/users/f2prateek/orgs","repos_url":"https://api.github.com/users/f2prateek/repos","events_url":"https://api.github.com/users/f2prateek/events{/privacy}","received_events_url":"https://api.github.com/users/f2prateek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/f2prateek/tape","description":"A lightning fast, transactional, file-based FIFO for Android and Java.","fork":true,"url":"https://api.github.com/repos/f2prateek/tape","forks_url":"https://api.github.com/repos/f2prateek/tape/forks","keys_url":"https://api.github.com/repos/f2prateek/tape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/f2prateek/tape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/f2prateek/tape/teams","hooks_url":"https://api.github.com/repos/f2prateek/tape/hooks","issue_events_url":"https://api.github.com/repos/f2prateek/tape/issues/events{/number}","events_url":"https://api.github.com/repos/f2prateek/tape/events","assignees_url":"https://api.github.com/repos/f2prateek/tape/assignees{/user}","branches_url":"https://api.github.com/repos/f2prateek/tape/branches{/branch}","tags_url":"https://api.github.com/repos/f2prateek/tape/tags","blobs_url":"https://api.github.com/repos/f2prateek/tape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/f2prateek/tape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/f2prateek/tape/git/refs{/sha}","trees_url":"https://api.github.com/repos/f2prateek/tape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/f2prateek/tape/statuses/{sha}","languages_url":"https://api.github.com/repos/f2prateek/tape/languages","stargazers_url":"https://api.github.com/repos/f2prateek/tape/stargazers","contributors_url":"https://api.github.com/repos/f2prateek/tape/contributors","subscribers_url":"https://api.github.com/repos/f2prateek/tape/subscribers","subscription_url":"https://api.github.com/repos/f2prateek/tape/subscription","commits_url":"https://api.github.com/repos/f2prateek/tape/commits{/sha}","git_commits_url":"https://api.github.com/repos/f2prateek/tape/git/commits{/sha}","comments_url":"https://api.github.com/repos/f2prateek/tape/comments{/number}","issue_comment_url":"https://api.github.com/repos/f2prateek/tape/issues/comments{/number}","contents_url":"https://api.github.com/repos/f2prateek/tape/contents/{+path}","compare_url":"https://api.github.com/repos/f2prateek/tape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/f2prateek/tape/merges","archive_url":"https://api.github.com/repos/f2prateek/tape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/f2prateek/tape/downloads","issues_url":"https://api.github.com/repos/f2prateek/tape/issues{/number}","pulls_url":"https://api.github.com/repos/f2prateek/tape/pulls{/number}","milestones_url":"https://api.github.com/repos/f2prateek/tape/milestones{/number}","notifications_url":"https://api.github.com/repos/f2prateek/tape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/f2prateek/tape/labels{/name}","releases_url":"https://api.github.com/repos/f2prateek/tape/releases{/id}","deployments_url":"https://api.github.com/repos/f2prateek/tape/deployments","created_at":"2016-09-02T21:29:13Z","updated_at":"2016-09-02T21:29:14Z","pushed_at":"2016-09-04T23:52:09Z","git_url":"git://github.com/f2prateek/tape.git","ssh_url":"git@github.com:f2prateek/tape.git","clone_url":"https://github.com/f2prateek/tape.git","svn_url":"https://github.com/f2prateek/tape","homepage":"http://square.github.io/tape/","size":560,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"8d326abe800d409edb7eb47aa032a0106f55c086","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":5745625,"name":"tape","full_name":"square/tape","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/tape","description":"A lightning fast, transactional, file-based FIFO for Android and Java.","fork":false,"url":"https://api.github.com/repos/square/tape","forks_url":"https://api.github.com/repos/square/tape/forks","keys_url":"https://api.github.com/repos/square/tape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/tape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/tape/teams","hooks_url":"https://api.github.com/repos/square/tape/hooks","issue_events_url":"https://api.github.com/repos/square/tape/issues/events{/number}","events_url":"https://api.github.com/repos/square/tape/events","assignees_url":"https://api.github.com/repos/square/tape/assignees{/user}","branches_url":"https://api.github.com/repos/square/tape/branches{/branch}","tags_url":"https://api.github.com/repos/square/tape/tags","blobs_url":"https://api.github.com/repos/square/tape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/tape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/tape/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/tape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/tape/statuses/{sha}","languages_url":"https://api.github.com/repos/square/tape/languages","stargazers_url":"https://api.github.com/repos/square/tape/stargazers","contributors_url":"https://api.github.com/repos/square/tape/contributors","subscribers_url":"https://api.github.com/repos/square/tape/subscribers","subscription_url":"https://api.github.com/repos/square/tape/subscription","commits_url":"https://api.github.com/repos/square/tape/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/tape/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/tape/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/tape/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/tape/contents/{+path}","compare_url":"https://api.github.com/repos/square/tape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/tape/merges","archive_url":"https://api.github.com/repos/square/tape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/tape/downloads","issues_url":"https://api.github.com/repos/square/tape/issues{/number}","pulls_url":"https://api.github.com/repos/square/tape/pulls{/number}","milestones_url":"https://api.github.com/repos/square/tape/milestones{/number}","notifications_url":"https://api.github.com/repos/square/tape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/tape/labels{/name}","releases_url":"https://api.github.com/repos/square/tape/releases{/id}","deployments_url":"https://api.github.com/repos/square/tape/deployments","created_at":"2012-09-10T06:18:49Z","updated_at":"2016-09-05T15:04:49Z","pushed_at":"2016-09-05T16:38:16Z","git_url":"git://github.com/square/tape.git","ssh_url":"git@github.com:square/tape.git","clone_url":"https://github.com/square/tape.git","svn_url":"https://github.com/square/tape","homepage":"http://square.github.io/tape/","size":744,"stargazers_count":1533,"watchers_count":1533,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":229,"mirror_url":null,"open_issues_count":8,"forks":229,"open_issues":8,"watchers":1533,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/tape/pulls/102"},"html":{"href":"https://github.com/square/tape/pull/102"},"issue":{"href":"https://api.github.com/repos/square/tape/issues/102"},"comments":{"href":"https://api.github.com/repos/square/tape/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/square/tape/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/square/tape/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/tape/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/square/tape/statuses/dd4b17b5ae41aee4bf2d40da80985e18c0a876d2"}}}}
{"actor":{"display_login":"JakeWharton"}}