Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
io.realm

Interface OrderedCollectionChangeSet

Esta interfaz describe los cambios realizados en una colección durante la última actualización.:ref:OrderedCollectionChangeSet <io_realm_OrderedCollectionChangeSet> se pasa a OrderedRealmCollectionChangeListener que está registrado por RealmResults.addChangeListener(OrderedRealmCollectionChangeListener).

The change information is available in two formats: a simple array of row indices in the collection for each type of change, or an array of Range s.

Modificador y Tipo
Clase y descripción

public static final

public static

Modificador y Tipo
Método y descripción

Los rangos modificados de objetos en la nueva versión de la colección.

public int

Los índices modificados en la nueva versión de la colección.

The deleted ranges of objects in the previous version of the collection.

public int

Los índices borrados en la versión anterior de la colección.

público Throwable

Returns any error that happened.

The inserted ranges of objects in the new version of the collection.

public int

Los índices insertados en la nueva versión de la colección.

Returns the state represented by this change.

Los rangos modificados de objetos en la nueva versión de la colección.

Devuelve

el arreglo rango. Se devolverá un arreglo de tamaño cero si no se modificaron objetos.

public int getChanges ()

The modified indices in the new version of the collection.For RealmResults , this means that one or more of the properties of the object at the given index were modified (or an object linked to by that object was modified).

Devuelve

the indices array. A zero-sized array will be returned if objects were modified.

The deleted ranges of objects in the previous version of the collection.

Devuelve

the Range array. A zero-sized array will be returned if no objects were deleted.

public int getDeletions ()

Los índices borrados en la versión anterior de la colección.

Devuelve

el arreglo de índices. Se devolverá un arreglo de tamaño cero si no se borró ningún objeto.

Devuelve cualquier error que haya ocurrido. Si se produce un error, el estado de la colección y otra información de conjuntos de cambios no se define. Es posible que una colección entre en un estado de error después de ser creada y de que comiencen a enviarse actualizaciones.

Devuelve

el error que ocurrió.

The inserted ranges of objects in the new version of the collection.

Devuelve

the Range array. A zero-sized array will be returned if no objects were inserted.

public int getInsertions ()

Los índices insertados en la nueva versión de la colección.

Devuelve

el arreglo indices. Se devolverá un arreglo de tamaño cero si no se insertaron objetos.

Returns the state represented by this change. See State for a description of the different states a changeset can be in.

Devuelve

¿Qué tipo de estado representa este conjunto de cambios?

Tip

  • Estado

Volver

ObjectChangeSet

En esta página