public class RealmObservableFactory extends java.lang.Object implements RxObservableFactory
| Constructor and Description |
|---|
RealmObservableFactory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
<any> |
from(DynamicRealm realm)
Creates an Observable for a
DynamicRealm. |
<any> |
from(DynamicRealm realm,
DynamicRealmObject object)
Creates an Observable for a
DynamicRealmObject. |
<any> |
from(DynamicRealm realm,
RealmList<DynamicRealmObject> list)
Creates an Observable for a
RealmList. |
<any> |
from(DynamicRealm realm,
RealmQuery<DynamicRealmObject> query)
Creates an Observable from a
RealmQuery. |
<any> |
from(DynamicRealm realm,
RealmResults<DynamicRealmObject> results)
Creates an Observable for a
RealmResults. |
<any> |
from(Realm realm)
Creates an Observable for a
Realm. |
<E extends RealmModel> |
from(Realm realm,
E object)
Creates an Observable for a
RealmObject. |
<E extends RealmModel> |
from(Realm realm,
RealmList<E> list)
Creates an Observable for a
RealmList. |
<E extends RealmModel> |
from(Realm realm,
RealmQuery<E> query)
Creates an Observable from a
RealmQuery. |
<E extends RealmModel> |
from(Realm realm,
RealmResults<E> results)
Creates an Observable for a
RealmResults. |
int |
hashCode() |
public <any> from(Realm realm)
RxObservableFactoryRealm. It should emit the initial state of the Realm when subscribed to and
on each subsequent update of the Realm.
Realm observables are hot observables as Realms are automatically kept up to date.from in interface RxObservableFactoryrealm - Realm to listen to changes for.public <any> from(DynamicRealm realm)
RxObservableFactoryDynamicRealm. It should emit the initial state of the Realm when subscribed
to and on each subsequent update of the Realm.
DynamicRealm observables are hot observables as DynamicRealms are automatically kept up to date.from in interface RxObservableFactoryrealm - DynamicRealm to listen to changes for.public <E extends RealmModel> <any> from(Realm realm, RealmResults<E> results)
RxObservableFactoryRealmResults. It should emit the initial RealmResult when subscribed to and
on each subsequent update of the RealmResults.
RealmResults observables are hot observables as RealmResults are automatically kept up to date.from in interface RxObservableFactoryE - type of RealmObjectrealm - Realm instance results are coming from.results - RealmResults to listen to changes for.public <any> from(DynamicRealm realm, RealmResults<DynamicRealmObject> results)
RxObservableFactoryRealmResults. It should emit the initial RealmResult when subscribed to and
on each subsequent update of the RealmResults.
Realm observables are hot observables as RealmResults are automatically kept up to date.from in interface RxObservableFactoryrealm - DynamicRealm instance results are coming from.results - RealmResults to listen to changes for.public <E extends RealmModel> <any> from(Realm realm, RealmList<E> list)
RxObservableFactoryRealmList. It should emit the initial list when subscribed to and on each
subsequent update of the RealmList.
RealmList observables are hot observables as RealmLists are automatically kept up to date.
Note: RealmChangeListener is currently not supported on RealmLists.from in interface RxObservableFactoryE - type of RealmObjectrealm - Realm instance list is coming from.list - RealmObject to listen to changes for.public <any> from(DynamicRealm realm, RealmList<DynamicRealmObject> list)
RxObservableFactoryRealmList. It should emit the initial list when subscribed to and on each
subsequent update of the RealmList.
RealmList observables are hot observables as RealmLists are automatically kept up to date.
Note: RealmChangeListener is currently not supported on RealmLists.from in interface RxObservableFactoryrealm - DynamicRealm instance list is coming from.list - RealmList to listen to changes for.public <E extends RealmModel> <any> from(Realm realm, E object)
RxObservableFactoryRealmObject. It should emit the initial object when subscribed to and on each
subsequent update of the object.
RealmObject observables are hot observables as RealmObjects are automatically kept up to date.from in interface RxObservableFactoryE - type of RealmObjectrealm - Realm instance object is coming from.object - RealmObject to listen to changes for.public <any> from(DynamicRealm realm, DynamicRealmObject object)
RxObservableFactoryDynamicRealmObject. It should emit the initial object when subscribed to and
on each subsequent update of the object.
DynamicRealmObject observables are hot observables as DynamicRealmObjects automatically are kept up to date.from in interface RxObservableFactoryrealm - DynamicRealm instance object is coming from.object - DynamicRealmObject to listen to changes for.public <E extends RealmModel> <any> from(Realm realm, RealmQuery<E> query)
RxObservableFactoryRealmQuery. It should emit the query and then complete.
A RealmQuery observable is cold.from in interface RxObservableFactoryE - type of RealmObjectrealm - Realm instance query is coming from.query - RealmQuery to emit.public <any> from(DynamicRealm realm, RealmQuery<DynamicRealmObject> query)
RxObservableFactoryRealmQuery. It should emit the query and then complete.
A RealmQuery observable is cold.from in interface RxObservableFactoryrealm - DynamicRealm instance query is coming from.query - RealmObject to listen to changes for.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object