io.realm
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.
Nested Class Summary
Modificador y Tipo | Clase y descripción |
|---|---|
| |
|
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
Los rangos modificados de objetos en la nueva versión de la colección. | |
public int | getChanges () 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 | getDeletions () Los índices borrados en la versión anterior de la colección. |
público Throwable | getError () 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. |
getState () Returns the state represented by this change. |
Detalle del método
obtener rangos de cambio
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. |
getChanges
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. |
getDeletionRanges
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. |
getDeletions
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. |
getError
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ó. |
getInsertionRanges
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. |
getInsertions
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. |
getState
public OrderedCollectionChangeSet.State getState () |
|---|