Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ / /

Interface MapChangeSet

On this page

  • io.realm
  • Method Summary
  • Method Detail
  • getChanges
  • getDeletions
  • getInsertions
  • isEmpty

This interface describes the changes made to a map during the last update.:ref:MapChangeSet <io_realm_MapChangeSet> is passed to the MapChangeListener which is registered by RealmMap.addChangeListener(MapChangeListener) .

Modifier and Type
Method and Description
public T
getChanges ()

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 boolean

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.

Returns

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.

Returns

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.

Returns

array with the keys that have been inserted.

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.

Returns

whether the change set contains changes.

Back

MapChangeListener