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

Interfaz MapChangeSet

Esta interfaz describe los cambios realizados en un mapa durante la última actualización.:ref:MapChangeSet <io_realm_MapChangeSet> se pasa al MapChangeListener que está registrado por RealmMap.addChangeListener(MapChangeListener).

Modificador y Tipo
Método y descripción

public T

Array containing the keys that have been modified in the previous version of the map.

public T

The number of entries that have been deleted in the previous version of the map.

public T

Array containing the keys that have been inserted in the previous version of the map.

public booleano

Whether the change set is empty or not.

public T getChanges ()

Array containing the keys that have been modified in the previous version of the map.

Devuelve

array with the keys that have been modified.

public T getDeletions ()

The number of entries that have been deleted in the previous version of the map.

Devuelve

array with the keys that have been deleted.

public T getInsertions ()

Array containing the keys that have been inserted in the previous version of the map.

Devuelve

arreglo con las keys que han sido insertadas.

public boolean isEmpty ()

Whether the change set is empty or not. This is needed to detect whether a notification has been triggered right after subscription.

Devuelve

si el conjunto de cambios contiene cambios.

Volver

Escuchador de cambios de mapa

En esta página