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

Class SetChangeSet

On this page

  • io.realm
  • Constructors
  • Method Summary
  • Inherited Methods
  • Constructor Detail
  • Method Detail
  • getNumberOfDeletions
  • getNumberOfInsertions
  • isEmpty
io.realm.SetChangeSet

This class describes the changes made to a set during the last update.:ref:SetChangeSet <io_realm_SetChangeSet> is passed to the SetChangeListener which is registered by RealmSet.addChangeListener(SetChangeListener) .

Constructor and Description
OsCollectionChangeSet osCollectionChangeSet
)
Modifier and Type
Method and Description
public int

The number of entries that have been deleted

public int

The number of entries that have been inserted.

public boolean

Whether the change set is empty or not.

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

public SetChangeSet (
OsCollectionChangeSet osCollectionChangeSet
)
public int getNumberOfDeletions ()

The number of entries that have been deleted

Returns

the number of deletions

public int getNumberOfInsertions ()

The number of entries that have been inserted.

Returns

the number of insertions.

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.

← Interface SetChangeListener