{"action":"created","comment":{"url":"https://api.github.com/repos/realm/realm-java/pulls/comments/47792248","id":47792248,"diff_hunk":"@@ -0,0 +1,288 @@\n+package io.realm;\n+\n+import android.test.AndroidTestCase;\n+\n+import java.util.List;\n+import java.util.concurrent.CountDownLatch;\n+import java.util.concurrent.atomic.AtomicBoolean;\n+import java.util.concurrent.atomic.AtomicInteger;\n+\n+import io.realm.entities.AllTypes;\n+import io.realm.entities.CyclicType;\n+import rx.Observable;\n+import rx.Scheduler;\n+import rx.Subscription;\n+import rx.functions.Action1;\n+import rx.functions.Func1;\n+import rx.schedulers.Schedulers;\n+\n+public class RxJavaTests extends AndroidTestCase {\n+\n+    private RealmConfiguration realmConfig;\n+    private Realm realm;\n+\n+    @Override\n+    protected void setUp() throws Exception {\n+        realmConfig = new RealmConfiguration.Builder(getContext()).build();\n+        Realm.deleteRealm(realmConfig);\n+        realm = Realm.getInstance(realmConfig);\n+    }\n+\n+    @Override\n+    protected void tearDown() throws Exception {\n+        realm.close();\n+    }\n+\n+    public void testObjectEmittedOnSubscribe() {\n+        realm.beginTransaction();\n+        final AllTypes obj = realm.createObject(AllTypes.class);\n+        realm.commitTransaction();\n+\n+        final AtomicBoolean subscribedNotified = new AtomicBoolean(false);\n+        obj.<AllTypes>asObservable().subscribe(new Action1<AllTypes>() {\n+            @Override\n+            public void call(AllTypes rxObject) {\n+                assertTrue(rxObject == obj);\n+                subscribedNotified.set(true);\n+            }\n+        });\n+        assertTrue(subscribedNotified.get());\n+    }\n+\n+    public void testObjectEmittedOnUpdate() {\n+        final AtomicInteger subscriberCalled = new AtomicInteger(0);\n+        realm.beginTransaction();\n+        final AllTypes obj = realm.createObject(AllTypes.class);\n+        realm.commitTransaction();\n+\n+        obj.<AllTypes>asObservable().subscribe(new Action1<AllTypes>() {\n+            @Override\n+            public void call(AllTypes rxObject) {\n+                subscriberCalled.addAndGet(1);\n+            }\n+        });\n+\n+        realm.beginTransaction();\n+        obj.setColumnLong(1);\n+        realm.commitTransaction();\n+\n+        assertEquals(2, subscriberCalled.get());\n+    }\n+\n+    public void testAsyncObjectEmittedOnSubscribe() {\n+        realm.beginTransaction();\n+        realm.createObject(AllTypes.class);\n+        realm.commitTransaction();\n+\n+        final AtomicBoolean subscribedNotified = new AtomicBoolean(false);\n+        final AllTypes asyncObj = realm.where(AllTypes.class).findFirst();\n+        asyncObj.<AllTypes>asObservable().subscribe(new Action1<AllTypes>() {\n+            @Override\n+            public void call(AllTypes rxObject) {\n+                assertTrue(rxObject == asyncObj);\n+                subscribedNotified.set(true);\n+            }\n+        });\n+        assertTrue(subscribedNotified.get());\n+    }\n+\n+    public void testAsyncObjectEmittedOnUpdate() {\n+        final AtomicInteger subscriberCalled = new AtomicInteger(0);\n+        realm.beginTransaction();\n+        AllTypes obj = realm.createObject(AllTypes.class);\n+        realm.commitTransaction();\n+        realm.where(AllTypes.class).findFirst().<AllTypes>asObservable().subscribe(new Action1<AllTypes>() {\n+            @Override\n+            public void call(AllTypes rxObject) {\n+                subscriberCalled.addAndGet(1);\n+            }\n+        });\n+\n+        realm.beginTransaction();\n+        obj.setColumnLong(1);\n+        realm.commitTransaction();\n+\n+        assertEquals(2, subscriberCalled.get());\n+    }\n+\n+    public void testRealmResultsEmittedOnSubscribe() {\n+        final AtomicBoolean subscribedNotified = new AtomicBoolean(false);\n+        final RealmResults<AllTypes> results = realm.allObjects(AllTypes.class);\n+        results.asObservable().subscribe(new Action1<RealmResults<AllTypes>>() {\n+            @Override\n+            public void call(RealmResults<AllTypes> rxResults) {\n+                assertTrue(rxResults == results);\n+                subscribedNotified.set(true);\n+            }\n+        });\n+        assertTrue(subscribedNotified.get());\n+    }\n+\n+    public void testResultsEmittedOnUpdate() {\n+        final AtomicInteger subscriberCalled = new AtomicInteger(0);\n+        realm.beginTransaction();\n+        RealmResults<AllTypes> results = realm.allObjects(AllTypes.class);\n+        realm.commitTransaction();\n+\n+        results.asObservable().subscribe(new Action1<RealmResults<AllTypes>>() {\n+            @Override\n+            public void call(RealmResults<AllTypes> allTypes) {\n+                subscriberCalled.addAndGet(1);\n+            }\n+        });\n+\n+        realm.beginTransaction();\n+        realm.createObject(AllTypes.class);\n+        realm.commitTransaction();\n+\n+        assertEquals(2, subscriberCalled.get());\n+    }\n+\n+    public void testAsyncRealmResultsEmittedOnSubscribe() {\n+        final AtomicBoolean subscribedNotified = new AtomicBoolean(false);\n+        final RealmResults<AllTypes> results = realm.where(AllTypes.class).findAllAsync();\n+        results.asObservable().subscribe(new Action1<RealmResults<AllTypes>>() {\n+            @Override\n+            public void call(RealmResults<AllTypes> rxResults) {\n+                assertTrue(rxResults == results);\n+                subscribedNotified.set(true);\n+            }\n+        });\n+        assertTrue(subscribedNotified.get());\n+    }\n+\n+    public void testAsyncResultsEmittedOnUpdate() {\n+        final AtomicInteger subscriberCalled = new AtomicInteger(0);\n+        realm.allObjects(AllTypes.class).asObservable().subscribe(new Action1<RealmResults<AllTypes>>() {\n+            @Override\n+            public void call(RealmResults<AllTypes> rxResults) {\n+                subscriberCalled.addAndGet(1);\n+            }\n+        });\n+\n+        realm.beginTransaction();\n+        realm.createObject(AllTypes.class);\n+        realm.commitTransaction();\n+\n+        assertEquals(2, subscriberCalled.get());\n+    }\n+\n+    public void testRealmEmittedOnSubscribe() {\n+        final AtomicBoolean subscribedNotified = new AtomicBoolean(false);\n+        realm.asObservable().subscribe(new Action1<Realm>() {\n+            @Override\n+            public void call(Realm rxRealm) {\n+                assertTrue(rxRealm == realm);\n+                subscribedNotified.set(true);\n+            }\n+        });\n+        assertTrue(subscribedNotified.get());\n+    }\n+\n+    public void testRealmEmittedOnUpdate() {\n+        final AtomicInteger subscriberCalled = new AtomicInteger(0);\n+        realm.asObservable().subscribe(new Action1<Realm>() {\n+            @Override\n+            public void call(Realm rxRealm) {\n+                subscriberCalled.addAndGet(1);\n+            }\n+        });\n+\n+        realm.beginTransaction();\n+        realm.createObject(AllTypes.class);\n+        realm.commitTransaction();\n+\n+        assertEquals(2, subscriberCalled.get());\n+    }\n+\n+    public void testDynamicRealmEmittedOnSubscribe() {\n+        final DynamicRealm dynamicRealm = DynamicRealm.createInstance(realm.getConfiguration());\n+        final AtomicBoolean subscribedNotified = new AtomicBoolean(false);\n+        dynamicRealm.asObservable().subscribe(new Action1<DynamicRealm>() {\n+            @Override\n+            public void call(DynamicRealm rxRealm) {\n+                assertTrue(rxRealm == dynamicRealm);\n+                subscribedNotified.set(true);\n+            }\n+        });\n+        assertTrue(subscribedNotified.get());\n+        dynamicRealm.close();\n+    }\n+\n+    public void testDynamicRealmEmittedOnUpdate() {\n+        final DynamicRealm dynamicRealm = DynamicRealm.createInstance(realm.getConfiguration());\n+        final AtomicInteger subscriberCalled = new AtomicInteger(0);\n+        dynamicRealm.asObservable().subscribe(new Action1<DynamicRealm>() {\n+            @Override\n+            public void call(DynamicRealm rxRealm) {\n+                subscriberCalled.addAndGet(1);\n+            }\n+        });\n+\n+        dynamicRealm.beginTransaction();\n+        dynamicRealm.createObject(\"AllTypes\");\n+        dynamicRealm.commitTransaction();\n+\n+        assertEquals(2, subscriberCalled.get());\n+        dynamicRealm.close();\n+    }\n+\n+    public void testUnsubscribe() {\n+        final AtomicBoolean subscribedNotified = new AtomicBoolean(false);\n+        Subscription subscription = realm.asObservable().subscribe(new Action1<Realm>() {\n+            @Override\n+            public void call(Realm rxRealm) {\n+                assertTrue(rxRealm == realm);\n+                subscribedNotified.set(true);\n+            }\n+        });\n+        assertEquals(1, realm.handlerController.changeListeners.size());\n+        subscription.unsubscribe();\n+        assertEquals(0, realm.handlerController.changeListeners.size());\n+    }\n+\n+    public void testUnsubscribeFromOtherThreadFails() {\n+        final CountDownLatch unsubscribeCompleted = new CountDownLatch(1);\n+        final AtomicBoolean subscribedNotified = new AtomicBoolean(false);\n+        final Subscription subscription = realm.asObservable().subscribe(new Action1<Realm>() {\n+            @Override\n+            public void call(Realm rxRealm) {\n+                assertTrue(rxRealm == realm);\n+                subscribedNotified.set(true);\n+            }\n+        });\n+        assertEquals(1, realm.handlerController.changeListeners.size());\n+        new Thread(new Runnable() {\n+            @Override\n+            public void run() {\n+                try {\n+                    subscription.unsubscribe();\n+                    fail();\n+                } catch (IllegalStateException ignored) {\n+                }\n+                unsubscribeCompleted.countDown();","path":"realm/realm-library/src/androidTest/java/io/realm/RxJavaTests.java","position":279,"original_position":263,"commit_id":"da494944ecc12cc69bc503666788b77aaa69af82","original_commit_id":"36c7c3f64c4acc155bcd9e3bc060aee0a8106ac0","user":{"login":"nhachicha","id":1793238,"avatar_url":"https://avatars.githubusercontent.com/u/1793238?v=3","gravatar_id":"","url":"https://api.github.com/users/nhachicha","html_url":"https://github.com/nhachicha","followers_url":"https://api.github.com/users/nhachicha/followers","following_url":"https://api.github.com/users/nhachicha/following{/other_user}","gists_url":"https://api.github.com/users/nhachicha/gists{/gist_id}","starred_url":"https://api.github.com/users/nhachicha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhachicha/subscriptions","organizations_url":"https://api.github.com/users/nhachicha/orgs","repos_url":"https://api.github.com/users/nhachicha/repos","events_url":"https://api.github.com/users/nhachicha/events{/privacy}","received_events_url":"https://api.github.com/users/nhachicha/received_events","type":"User","site_admin":false},"body":"shouldn't this be in a `finally` block?","created_at":"2015-12-16T15:49:01Z","updated_at":"2015-12-16T15:49:01Z","html_url":"https://github.com/realm/realm-java/pull/1710#discussion_r47792248","pull_request_url":"https://api.github.com/repos/realm/realm-java/pulls/1710","_links":{"self":{"href":"https://api.github.com/repos/realm/realm-java/pulls/comments/47792248"},"html":{"href":"https://github.com/realm/realm-java/pull/1710#discussion_r47792248"},"pull_request":{"href":"https://api.github.com/repos/realm/realm-java/pulls/1710"}}},"pull_request":{"url":"https://api.github.com/repos/realm/realm-java/pulls/1710","id":49370788,"html_url":"https://github.com/realm/realm-java/pull/1710","diff_url":"https://github.com/realm/realm-java/pull/1710.diff","patch_url":"https://github.com/realm/realm-java/pull/1710.patch","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1710","number":1710,"state":"open","locked":false,"title":"Add RxJava support ","user":{"login":"cmelchior","id":406066,"avatar_url":"https://avatars.githubusercontent.com/u/406066?v=3","gravatar_id":"","url":"https://api.github.com/users/cmelchior","html_url":"https://github.com/cmelchior","followers_url":"https://api.github.com/users/cmelchior/followers","following_url":"https://api.github.com/users/cmelchior/following{/other_user}","gists_url":"https://api.github.com/users/cmelchior/gists{/gist_id}","starred_url":"https://api.github.com/users/cmelchior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmelchior/subscriptions","organizations_url":"https://api.github.com/users/cmelchior/orgs","repos_url":"https://api.github.com/users/cmelchior/repos","events_url":"https://api.github.com/users/cmelchior/events{/privacy}","received_events_url":"https://api.github.com/users/cmelchior/received_events","type":"User","site_admin":false},"body":"This PR fixes #865 \r\n\r\nThis PR is a feature branch for collecting all RxJava sub-branches before merging. Right now the roadmap is this:\r\n\r\n- [x] 1) This branch adds simple RxJava support by adding RealmConfiguration methods / Factory interface and a simple implementation supporting RealmObject/RealmResults/Realm.\r\n\r\n- [ ] 2) Sample project showing the current caveats and work-arounds to be mindful off (#1940)\r\n\r\n- [ ] 3) Add support for RealmQuery observable. We need to expose handover of queries to other threads. \r\n\r\n- [ ] 4) Custom `DetachedCopyObservableFactory` class for making all RealmData in-memory data. We need to expose handover for RealmObject/RealmResults\r\n\r\n- [ ] 5) Add Support for RealmList (not relevant before fine-grained notification and changelisteners have been added). \r\n\r\n1 + 2 is required before merging to main branch, 3 would be nice to have, 4 + 5 will probably take a little longer and will tie into handover mechanisms already considered elsewhere.\r\n\r\n-----\r\nAPI: (for step 1)\r\n```\r\nRealm.asObservable();\r\nRealmObject.asObservable();\r\nRealmResults.asObservable();\r\nDynamicRealm.asObservable();\r\nDynamicRealmObject.asObservable();\r\nRealmConfiguration.Builder.rxFactory(RxObservableFactory factory);\r\n```\r\n\r\nNote that all Rx classes are in a new package `io.realm.rx`. Should we move these into `io.realm` as that currently holds all our public API? It doesn't conflict with the proposal of adding `io.realm.android` (as RxJava is not Android only), but something to consider when adding future classes/functionality.\r\n\r\n--------\r\n- [x] Finalize API proposal in #1651. Especially if RxObservableFactory should move to its own dependency. Conclusion: Keep factory classes in repo for now. Other questions: \r\n   1) We cannot have rx classes in a `io.realm.rx` without making BaseRealm public, is having them in `io.realm` OK? Otherwise should we make BaseRealm public but perhaps exclude it from JavaDoc? Answer: Added methods explicitly naming Realm/DynamicRealm to work around this.\r\n   2) Should we expose observable methods on RealmQuery? YES: See other PR\r\n   3) RealmObject is now `RealmObject<E extends RealmObject<E>>` which is slightly painful if you want type safe observables for RealmObjects. You need to do `public class Person extends RealmObject<Person>`. It is not mandatory though. Answer: YES, IntelliJ will give you warning if no generic parameter is given, but otherwise it works fine in all other cases, i.e. only RxJava users will notice it.\r\n- [x] Fix changelistener bug #1884 \r\n- [x] Fix changeListeners not triggering for synchronous queries on RealmResults/RealmObjects ( #1676). \r\n- [x] Use `copyFromRealm` for `InMemoryObservableFactory` ( #1849 )\r\n- [x] Investigate the possibility to use a custom RealmScheduler to facilitate moving across threads. Just like our current async API does now. Conclusion: Not possible as the scheduler does not have access to the parameters being parsed around. With auto-closable Realms it will be possible, or wait for freeze() semantics.\r\n- [x] More examples of Observables with 'gotchas' have to be added.\r\n- [x] Throw proper error message if calling `observable()` and RxJava is not on the classpath\r\n","created_at":"2015-11-01T12:20:52Z","updated_at":"2015-12-16T15:49:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f4ce525f8c360b014f0b42d7e8d0f5ac4ee991a","assignee":{"login":"cmelchior","id":406066,"avatar_url":"https://avatars.githubusercontent.com/u/406066?v=3","gravatar_id":"","url":"https://api.github.com/users/cmelchior","html_url":"https://github.com/cmelchior","followers_url":"https://api.github.com/users/cmelchior/followers","following_url":"https://api.github.com/users/cmelchior/following{/other_user}","gists_url":"https://api.github.com/users/cmelchior/gists{/gist_id}","starred_url":"https://api.github.com/users/cmelchior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmelchior/subscriptions","organizations_url":"https://api.github.com/users/cmelchior/orgs","repos_url":"https://api.github.com/users/cmelchior/repos","events_url":"https://api.github.com/users/cmelchior/events{/privacy}","received_events_url":"https://api.github.com/users/cmelchior/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/realm/realm-java/pulls/1710/commits","review_comments_url":"https://api.github.com/repos/realm/realm-java/pulls/1710/comments","review_comment_url":"https://api.github.com/repos/realm/realm-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1710/comments","statuses_url":"https://api.github.com/repos/realm/realm-java/statuses/da494944ecc12cc69bc503666788b77aaa69af82","head":{"label":"realm:feature-rxjava","ref":"feature-rxjava","sha":"da494944ecc12cc69bc503666788b77aaa69af82","user":{"login":"realm","id":7575099,"avatar_url":"https://avatars.githubusercontent.com/u/7575099?v=3","gravatar_id":"","url":"https://api.github.com/users/realm","html_url":"https://github.com/realm","followers_url":"https://api.github.com/users/realm/followers","following_url":"https://api.github.com/users/realm/following{/other_user}","gists_url":"https://api.github.com/users/realm/gists{/gist_id}","starred_url":"https://api.github.com/users/realm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realm/subscriptions","organizations_url":"https://api.github.com/users/realm/orgs","repos_url":"https://api.github.com/users/realm/repos","events_url":"https://api.github.com/users/realm/events{/privacy}","received_events_url":"https://api.github.com/users/realm/received_events","type":"Organization","site_admin":false},"repo":{"id":4084908,"name":"realm-java","full_name":"realm/realm-java","owner":{"login":"realm","id":7575099,"avatar_url":"https://avatars.githubusercontent.com/u/7575099?v=3","gravatar_id":"","url":"https://api.github.com/users/realm","html_url":"https://github.com/realm","followers_url":"https://api.github.com/users/realm/followers","following_url":"https://api.github.com/users/realm/following{/other_user}","gists_url":"https://api.github.com/users/realm/gists{/gist_id}","starred_url":"https://api.github.com/users/realm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realm/subscriptions","organizations_url":"https://api.github.com/users/realm/orgs","repos_url":"https://api.github.com/users/realm/repos","events_url":"https://api.github.com/users/realm/events{/privacy}","received_events_url":"https://api.github.com/users/realm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/realm/realm-java","description":"Realm is a mobile database: a replacement for SQLite & ORMs","fork":false,"url":"https://api.github.com/repos/realm/realm-java","forks_url":"https://api.github.com/repos/realm/realm-java/forks","keys_url":"https://api.github.com/repos/realm/realm-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/realm/realm-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/realm/realm-java/teams","hooks_url":"https://api.github.com/repos/realm/realm-java/hooks","issue_events_url":"https://api.github.com/repos/realm/realm-java/issues/events{/number}","events_url":"https://api.github.com/repos/realm/realm-java/events","assignees_url":"https://api.github.com/repos/realm/realm-java/assignees{/user}","branches_url":"https://api.github.com/repos/realm/realm-java/branches{/branch}","tags_url":"https://api.github.com/repos/realm/realm-java/tags","blobs_url":"https://api.github.com/repos/realm/realm-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/realm/realm-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/realm/realm-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/realm/realm-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/realm/realm-java/statuses/{sha}","languages_url":"https://api.github.com/repos/realm/realm-java/languages","stargazers_url":"https://api.github.com/repos/realm/realm-java/stargazers","contributors_url":"https://api.github.com/repos/realm/realm-java/contributors","subscribers_url":"https://api.github.com/repos/realm/realm-java/subscribers","subscription_url":"https://api.github.com/repos/realm/realm-java/subscription","commits_url":"https://api.github.com/repos/realm/realm-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/realm/realm-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/realm/realm-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/realm/realm-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/realm/realm-java/contents/{+path}","compare_url":"https://api.github.com/repos/realm/realm-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/realm/realm-java/merges","archive_url":"https://api.github.com/repos/realm/realm-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/realm/realm-java/downloads","issues_url":"https://api.github.com/repos/realm/realm-java/issues{/number}","pulls_url":"https://api.github.com/repos/realm/realm-java/pulls{/number}","milestones_url":"https://api.github.com/repos/realm/realm-java/milestones{/number}","notifications_url":"https://api.github.com/repos/realm/realm-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/realm/realm-java/labels{/name}","releases_url":"https://api.github.com/repos/realm/realm-java/releases{/id}","created_at":"2012-04-20T09:18:42Z","updated_at":"2015-12-16T15:33:37Z","pushed_at":"2015-12-16T15:23:42Z","git_url":"git://github.com/realm/realm-java.git","ssh_url":"git@github.com:realm/realm-java.git","clone_url":"https://github.com/realm/realm-java.git","svn_url":"https://github.com/realm/realm-java","homepage":"http://realm.io","size":43448,"stargazers_count":3109,"watchers_count":3109,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":342,"mirror_url":null,"open_issues_count":182,"forks":342,"open_issues":182,"watchers":3109,"default_branch":"master"}},"base":{"label":"realm:master","ref":"master","sha":"daaade1618c5b511bf60e2f0030419f08020d80a","user":{"login":"realm","id":7575099,"avatar_url":"https://avatars.githubusercontent.com/u/7575099?v=3","gravatar_id":"","url":"https://api.github.com/users/realm","html_url":"https://github.com/realm","followers_url":"https://api.github.com/users/realm/followers","following_url":"https://api.github.com/users/realm/following{/other_user}","gists_url":"https://api.github.com/users/realm/gists{/gist_id}","starred_url":"https://api.github.com/users/realm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realm/subscriptions","organizations_url":"https://api.github.com/users/realm/orgs","repos_url":"https://api.github.com/users/realm/repos","events_url":"https://api.github.com/users/realm/events{/privacy}","received_events_url":"https://api.github.com/users/realm/received_events","type":"Organization","site_admin":false},"repo":{"id":4084908,"name":"realm-java","full_name":"realm/realm-java","owner":{"login":"realm","id":7575099,"avatar_url":"https://avatars.githubusercontent.com/u/7575099?v=3","gravatar_id":"","url":"https://api.github.com/users/realm","html_url":"https://github.com/realm","followers_url":"https://api.github.com/users/realm/followers","following_url":"https://api.github.com/users/realm/following{/other_user}","gists_url":"https://api.github.com/users/realm/gists{/gist_id}","starred_url":"https://api.github.com/users/realm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/realm/subscriptions","organizations_url":"https://api.github.com/users/realm/orgs","repos_url":"https://api.github.com/users/realm/repos","events_url":"https://api.github.com/users/realm/events{/privacy}","received_events_url":"https://api.github.com/users/realm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/realm/realm-java","description":"Realm is a mobile database: a replacement for SQLite & ORMs","fork":false,"url":"https://api.github.com/repos/realm/realm-java","forks_url":"https://api.github.com/repos/realm/realm-java/forks","keys_url":"https://api.github.com/repos/realm/realm-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/realm/realm-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/realm/realm-java/teams","hooks_url":"https://api.github.com/repos/realm/realm-java/hooks","issue_events_url":"https://api.github.com/repos/realm/realm-java/issues/events{/number}","events_url":"https://api.github.com/repos/realm/realm-java/events","assignees_url":"https://api.github.com/repos/realm/realm-java/assignees{/user}","branches_url":"https://api.github.com/repos/realm/realm-java/branches{/branch}","tags_url":"https://api.github.com/repos/realm/realm-java/tags","blobs_url":"https://api.github.com/repos/realm/realm-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/realm/realm-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/realm/realm-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/realm/realm-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/realm/realm-java/statuses/{sha}","languages_url":"https://api.github.com/repos/realm/realm-java/languages","stargazers_url":"https://api.github.com/repos/realm/realm-java/stargazers","contributors_url":"https://api.github.com/repos/realm/realm-java/contributors","subscribers_url":"https://api.github.com/repos/realm/realm-java/subscribers","subscription_url":"https://api.github.com/repos/realm/realm-java/subscription","commits_url":"https://api.github.com/repos/realm/realm-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/realm/realm-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/realm/realm-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/realm/realm-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/realm/realm-java/contents/{+path}","compare_url":"https://api.github.com/repos/realm/realm-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/realm/realm-java/merges","archive_url":"https://api.github.com/repos/realm/realm-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/realm/realm-java/downloads","issues_url":"https://api.github.com/repos/realm/realm-java/issues{/number}","pulls_url":"https://api.github.com/repos/realm/realm-java/pulls{/number}","milestones_url":"https://api.github.com/repos/realm/realm-java/milestones{/number}","notifications_url":"https://api.github.com/repos/realm/realm-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/realm/realm-java/labels{/name}","releases_url":"https://api.github.com/repos/realm/realm-java/releases{/id}","created_at":"2012-04-20T09:18:42Z","updated_at":"2015-12-16T15:33:37Z","pushed_at":"2015-12-16T15:23:42Z","git_url":"git://github.com/realm/realm-java.git","ssh_url":"git@github.com:realm/realm-java.git","clone_url":"https://github.com/realm/realm-java.git","svn_url":"https://github.com/realm/realm-java","homepage":"http://realm.io","size":43448,"stargazers_count":3109,"watchers_count":3109,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":342,"mirror_url":null,"open_issues_count":182,"forks":342,"open_issues":182,"watchers":3109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/realm/realm-java/pulls/1710"},"html":{"href":"https://github.com/realm/realm-java/pull/1710"},"issue":{"href":"https://api.github.com/repos/realm/realm-java/issues/1710"},"comments":{"href":"https://api.github.com/repos/realm/realm-java/issues/1710/comments"},"review_comments":{"href":"https://api.github.com/repos/realm/realm-java/pulls/1710/comments"},"review_comment":{"href":"https://api.github.com/repos/realm/realm-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/realm/realm-java/pulls/1710/commits"},"statuses":{"href":"https://api.github.com/repos/realm/realm-java/statuses/da494944ecc12cc69bc503666788b77aaa69af82"}}}}