Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
io.realm.rx

Class CollectionChange

java.lang.Object
io.realm.rx.CollectionChange

Contenedor que envuelve el resultado de la activación de un io.realm.OrderedRealmCollectionChangeListener.

This is used by RealmResults.asChangesetObservable() } and RealmList.asChangesetObservable() as RxJava is only capable of emitting one item, not multiple.

Constructor and Description

Constructor for a CollectionChange.

Modificador y Tipo
Método y descripción

public booleano

Devuelve el conjunto de cambios que describe actualizar.

public E

Returns the collection that was updated.

public int

  • Métodos heredados de la clase java.lang.Object: getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

E collection,
)

Constructor for a CollectionChange.

Parámetros

  • collection - the collection that changed.

  • changeset - el conjunto de cambios que describe el cambio.

public boolean equals (
)

Anulaciones

equals en la clase Objeto

Devuelve el conjunto de cambios que describe la actualización. Esto será null la primera vez que la transmisión emita la colección, así como también cuando se cargue una consulta asincrónica por primera vez.

// Example
realm.where(Person.class).findAllAsync().asChangesetObservable()
.subscribe(new Consumer<CollectionChange>() {
@Override
public void accept(CollectionChange item) throws Exception {
item.getChangeset(); // Will return null the first two times
}
});

Devuelve

the changeset describing how the collection was updated.

public E getCollection ()

Returns the collection that was updated.

Devuelve

collection that was updated.

public int hashCode ()

Anulaciones

hashCode en la clase Objeto

Volver

io.realm.rx

En esta página