{"action":"created","comment":{"url":"https://api.github.com/repos/java-course-au/assignments/pulls/comments/41484529","id":41484529,"diff_hunk":"@@ -0,0 +1,38 @@\n+package ru.spbau.mit;\n+\n+public abstract class Predicate<T> extends Function1<T, Boolean>{\n+    public static final Predicate<?> ALWAYS_TRUE = new Predicate<Object>(){\n+        public Boolean apply(Object arg) {\n+            return (Boolean)true;\n+        }\n+    };\n+    public static final Predicate<?> ALWAYS_FALSE= new Predicate<Object>() {\n+        public Boolean apply(Object arg) {\n+            return (Boolean)false;\n+        }\n+    };\n+\n+    public Predicate<T> or(final Predicate<T> p) {\n+        return new Predicate<T>() {\n+            public Boolean apply(T arg) {\n+                return  p.apply(arg)|| Predicate.this.apply(arg);\n+            }\n+        };\n+    }\n+\n+    public Predicate<T> and(final Predicate<T> p) {","path":"src/main/java/ru/spbau/mit/Predicate.java","position":23,"original_position":23,"commit_id":"8410559e90be8d02482689c6bd813cb31d8ac64f","original_commit_id":"8410559e90be8d02482689c6bd813cb31d8ac64f","user":{"login":"dancingrobot84","id":153210,"avatar_url":"https://avatars.githubusercontent.com/u/153210?v=3","gravatar_id":"","url":"https://api.github.com/users/dancingrobot84","html_url":"https://github.com/dancingrobot84","followers_url":"https://api.github.com/users/dancingrobot84/followers","following_url":"https://api.github.com/users/dancingrobot84/following{/other_user}","gists_url":"https://api.github.com/users/dancingrobot84/gists{/gist_id}","starred_url":"https://api.github.com/users/dancingrobot84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancingrobot84/subscriptions","organizations_url":"https://api.github.com/users/dancingrobot84/orgs","repos_url":"https://api.github.com/users/dancingrobot84/repos","events_url":"https://api.github.com/users/dancingrobot84/events{/privacy}","received_events_url":"https://api.github.com/users/dancingrobot84/received_events","type":"User","site_admin":false},"body":"Сигнатура `p` стала негибкой","created_at":"2015-10-08T07:48:18Z","updated_at":"2015-10-08T07:48:18Z","html_url":"https://github.com/java-course-au/assignments/pull/43#discussion_r41484529","pull_request_url":"https://api.github.com/repos/java-course-au/assignments/pulls/43","_links":{"self":{"href":"https://api.github.com/repos/java-course-au/assignments/pulls/comments/41484529"},"html":{"href":"https://github.com/java-course-au/assignments/pull/43#discussion_r41484529"},"pull_request":{"href":"https://api.github.com/repos/java-course-au/assignments/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/java-course-au/assignments/pulls/43","id":46246683,"html_url":"https://github.com/java-course-au/assignments/pull/43","diff_url":"https://github.com/java-course-au/assignments/pull/43.diff","patch_url":"https://github.com/java-course-au/assignments/pull/43.patch","issue_url":"https://api.github.com/repos/java-course-au/assignments/issues/43","number":43,"state":"open","locked":false,"title":"HW 2","user":{"login":"SashaMalysheva","id":11505069,"avatar_url":"https://avatars.githubusercontent.com/u/11505069?v=3","gravatar_id":"","url":"https://api.github.com/users/SashaMalysheva","html_url":"https://github.com/SashaMalysheva","followers_url":"https://api.github.com/users/SashaMalysheva/followers","following_url":"https://api.github.com/users/SashaMalysheva/following{/other_user}","gists_url":"https://api.github.com/users/SashaMalysheva/gists{/gist_id}","starred_url":"https://api.github.com/users/SashaMalysheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SashaMalysheva/subscriptions","organizations_url":"https://api.github.com/users/SashaMalysheva/orgs","repos_url":"https://api.github.com/users/SashaMalysheva/repos","events_url":"https://api.github.com/users/SashaMalysheva/events{/privacy}","received_events_url":"https://api.github.com/users/SashaMalysheva/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-29T08:01:02Z","updated_at":"2015-10-08T07:48:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a0a2064b684a659f79141f4a9e9b57c7a7941f7","assignee":{"login":"dancingrobot84","id":153210,"avatar_url":"https://avatars.githubusercontent.com/u/153210?v=3","gravatar_id":"","url":"https://api.github.com/users/dancingrobot84","html_url":"https://github.com/dancingrobot84","followers_url":"https://api.github.com/users/dancingrobot84/followers","following_url":"https://api.github.com/users/dancingrobot84/following{/other_user}","gists_url":"https://api.github.com/users/dancingrobot84/gists{/gist_id}","starred_url":"https://api.github.com/users/dancingrobot84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancingrobot84/subscriptions","organizations_url":"https://api.github.com/users/dancingrobot84/orgs","repos_url":"https://api.github.com/users/dancingrobot84/repos","events_url":"https://api.github.com/users/dancingrobot84/events{/privacy}","received_events_url":"https://api.github.com/users/dancingrobot84/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/java-course-au/assignments/pulls/43/commits","review_comments_url":"https://api.github.com/repos/java-course-au/assignments/pulls/43/comments","review_comment_url":"https://api.github.com/repos/java-course-au/assignments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/java-course-au/assignments/issues/43/comments","statuses_url":"https://api.github.com/repos/java-course-au/assignments/statuses/8410559e90be8d02482689c6bd813cb31d8ac64f","head":{"label":"SashaMalysheva:02-functional-java","ref":"02-functional-java","sha":"8410559e90be8d02482689c6bd813cb31d8ac64f","user":{"login":"SashaMalysheva","id":11505069,"avatar_url":"https://avatars.githubusercontent.com/u/11505069?v=3","gravatar_id":"","url":"https://api.github.com/users/SashaMalysheva","html_url":"https://github.com/SashaMalysheva","followers_url":"https://api.github.com/users/SashaMalysheva/followers","following_url":"https://api.github.com/users/SashaMalysheva/following{/other_user}","gists_url":"https://api.github.com/users/SashaMalysheva/gists{/gist_id}","starred_url":"https://api.github.com/users/SashaMalysheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SashaMalysheva/subscriptions","organizations_url":"https://api.github.com/users/SashaMalysheva/orgs","repos_url":"https://api.github.com/users/SashaMalysheva/repos","events_url":"https://api.github.com/users/SashaMalysheva/events{/privacy}","received_events_url":"https://api.github.com/users/SashaMalysheva/received_events","type":"User","site_admin":false},"repo":{"id":42955985,"name":"assignments","full_name":"SashaMalysheva/assignments","owner":{"login":"SashaMalysheva","id":11505069,"avatar_url":"https://avatars.githubusercontent.com/u/11505069?v=3","gravatar_id":"","url":"https://api.github.com/users/SashaMalysheva","html_url":"https://github.com/SashaMalysheva","followers_url":"https://api.github.com/users/SashaMalysheva/followers","following_url":"https://api.github.com/users/SashaMalysheva/following{/other_user}","gists_url":"https://api.github.com/users/SashaMalysheva/gists{/gist_id}","starred_url":"https://api.github.com/users/SashaMalysheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SashaMalysheva/subscriptions","organizations_url":"https://api.github.com/users/SashaMalysheva/orgs","repos_url":"https://api.github.com/users/SashaMalysheva/repos","events_url":"https://api.github.com/users/SashaMalysheva/events{/privacy}","received_events_url":"https://api.github.com/users/SashaMalysheva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SashaMalysheva/assignments","description":"Домашние задания по Java","fork":true,"url":"https://api.github.com/repos/SashaMalysheva/assignments","forks_url":"https://api.github.com/repos/SashaMalysheva/assignments/forks","keys_url":"https://api.github.com/repos/SashaMalysheva/assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SashaMalysheva/assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SashaMalysheva/assignments/teams","hooks_url":"https://api.github.com/repos/SashaMalysheva/assignments/hooks","issue_events_url":"https://api.github.com/repos/SashaMalysheva/assignments/issues/events{/number}","events_url":"https://api.github.com/repos/SashaMalysheva/assignments/events","assignees_url":"https://api.github.com/repos/SashaMalysheva/assignments/assignees{/user}","branches_url":"https://api.github.com/repos/SashaMalysheva/assignments/branches{/branch}","tags_url":"https://api.github.com/repos/SashaMalysheva/assignments/tags","blobs_url":"https://api.github.com/repos/SashaMalysheva/assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SashaMalysheva/assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SashaMalysheva/assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/SashaMalysheva/assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SashaMalysheva/assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/SashaMalysheva/assignments/languages","stargazers_url":"https://api.github.com/repos/SashaMalysheva/assignments/stargazers","contributors_url":"https://api.github.com/repos/SashaMalysheva/assignments/contributors","subscribers_url":"https://api.github.com/repos/SashaMalysheva/assignments/subscribers","subscription_url":"https://api.github.com/repos/SashaMalysheva/assignments/subscription","commits_url":"https://api.github.com/repos/SashaMalysheva/assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/SashaMalysheva/assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/SashaMalysheva/assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/SashaMalysheva/assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/SashaMalysheva/assignments/contents/{+path}","compare_url":"https://api.github.com/repos/SashaMalysheva/assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SashaMalysheva/assignments/merges","archive_url":"https://api.github.com/repos/SashaMalysheva/assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SashaMalysheva/assignments/downloads","issues_url":"https://api.github.com/repos/SashaMalysheva/assignments/issues{/number}","pulls_url":"https://api.github.com/repos/SashaMalysheva/assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/SashaMalysheva/assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/SashaMalysheva/assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SashaMalysheva/assignments/labels{/name}","releases_url":"https://api.github.com/repos/SashaMalysheva/assignments/releases{/id}","created_at":"2015-09-22T19:28:12Z","updated_at":"2015-09-15T08:01:56Z","pushed_at":"2015-10-07T12:59:54Z","git_url":"git://github.com/SashaMalysheva/assignments.git","ssh_url":"git@github.com:SashaMalysheva/assignments.git","clone_url":"https://github.com/SashaMalysheva/assignments.git","svn_url":"https://github.com/SashaMalysheva/assignments","homepage":"http://mit.spbau.ru/sewiki/index.php/Java_2_2015","size":118,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"java-course-au:02-functional-java","ref":"02-functional-java","sha":"3fee4ab1e0ec46b1dadc4455c8c49d2568e5db9d","user":{"login":"java-course-au","id":14248092,"avatar_url":"https://avatars.githubusercontent.com/u/14248092?v=3","gravatar_id":"","url":"https://api.github.com/users/java-course-au","html_url":"https://github.com/java-course-au","followers_url":"https://api.github.com/users/java-course-au/followers","following_url":"https://api.github.com/users/java-course-au/following{/other_user}","gists_url":"https://api.github.com/users/java-course-au/gists{/gist_id}","starred_url":"https://api.github.com/users/java-course-au/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-course-au/subscriptions","organizations_url":"https://api.github.com/users/java-course-au/orgs","repos_url":"https://api.github.com/users/java-course-au/repos","events_url":"https://api.github.com/users/java-course-au/events{/privacy}","received_events_url":"https://api.github.com/users/java-course-au/received_events","type":"Organization","site_admin":false},"repo":{"id":42502722,"name":"assignments","full_name":"java-course-au/assignments","owner":{"login":"java-course-au","id":14248092,"avatar_url":"https://avatars.githubusercontent.com/u/14248092?v=3","gravatar_id":"","url":"https://api.github.com/users/java-course-au","html_url":"https://github.com/java-course-au","followers_url":"https://api.github.com/users/java-course-au/followers","following_url":"https://api.github.com/users/java-course-au/following{/other_user}","gists_url":"https://api.github.com/users/java-course-au/gists{/gist_id}","starred_url":"https://api.github.com/users/java-course-au/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-course-au/subscriptions","organizations_url":"https://api.github.com/users/java-course-au/orgs","repos_url":"https://api.github.com/users/java-course-au/repos","events_url":"https://api.github.com/users/java-course-au/events{/privacy}","received_events_url":"https://api.github.com/users/java-course-au/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/java-course-au/assignments","description":"Домашние задания по Java","fork":false,"url":"https://api.github.com/repos/java-course-au/assignments","forks_url":"https://api.github.com/repos/java-course-au/assignments/forks","keys_url":"https://api.github.com/repos/java-course-au/assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/java-course-au/assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/java-course-au/assignments/teams","hooks_url":"https://api.github.com/repos/java-course-au/assignments/hooks","issue_events_url":"https://api.github.com/repos/java-course-au/assignments/issues/events{/number}","events_url":"https://api.github.com/repos/java-course-au/assignments/events","assignees_url":"https://api.github.com/repos/java-course-au/assignments/assignees{/user}","branches_url":"https://api.github.com/repos/java-course-au/assignments/branches{/branch}","tags_url":"https://api.github.com/repos/java-course-au/assignments/tags","blobs_url":"https://api.github.com/repos/java-course-au/assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/java-course-au/assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/java-course-au/assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/java-course-au/assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/java-course-au/assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/java-course-au/assignments/languages","stargazers_url":"https://api.github.com/repos/java-course-au/assignments/stargazers","contributors_url":"https://api.github.com/repos/java-course-au/assignments/contributors","subscribers_url":"https://api.github.com/repos/java-course-au/assignments/subscribers","subscription_url":"https://api.github.com/repos/java-course-au/assignments/subscription","commits_url":"https://api.github.com/repos/java-course-au/assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/java-course-au/assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/java-course-au/assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/java-course-au/assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/java-course-au/assignments/contents/{+path}","compare_url":"https://api.github.com/repos/java-course-au/assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/java-course-au/assignments/merges","archive_url":"https://api.github.com/repos/java-course-au/assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/java-course-au/assignments/downloads","issues_url":"https://api.github.com/repos/java-course-au/assignments/issues{/number}","pulls_url":"https://api.github.com/repos/java-course-au/assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/java-course-au/assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/java-course-au/assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/java-course-au/assignments/labels{/name}","releases_url":"https://api.github.com/repos/java-course-au/assignments/releases{/id}","created_at":"2015-09-15T07:36:54Z","updated_at":"2015-10-04T08:47:09Z","pushed_at":"2015-10-07T14:29:39Z","git_url":"git://github.com/java-course-au/assignments.git","ssh_url":"git@github.com:java-course-au/assignments.git","clone_url":"https://github.com/java-course-au/assignments.git","svn_url":"https://github.com/java-course-au/assignments","homepage":"http://mit.spbau.ru/sewiki/index.php/Java_2_2015","size":1431,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":18,"forks":26,"open_issues":18,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/java-course-au/assignments/pulls/43"},"html":{"href":"https://github.com/java-course-au/assignments/pull/43"},"issue":{"href":"https://api.github.com/repos/java-course-au/assignments/issues/43"},"comments":{"href":"https://api.github.com/repos/java-course-au/assignments/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/java-course-au/assignments/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/java-course-au/assignments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/java-course-au/assignments/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/java-course-au/assignments/statuses/8410559e90be8d02482689c6bd813cb31d8ac64f"}}}}