RealmSet
RealmSet is a collection that contains no duplicate elements.
Similarly to RealmLists, a RealmSet can operate in managed
and unmanaged
modes. In managed mode a RealmSet persists all its contents inside a realm whereas in unmanaged mode it functions like a MutableSet.
Managed RealmSets can only be created by Realm and will automatically update their content whenever the underlying Realm is updated. Managed RealmSets can only be accessed using the getter that points to a RealmSet field of a RealmObject.
Parameters
E
the type of elements contained in the RealmSet.
Functions
addAll
Link copied to clipboard
containsAll
Link copied to clipboard
iterator
Link copied to clipboard
removeAll
Link copied to clipboard
retainAll
Link copied to clipboard
Properties
Extensions
copyFromRealm
Link copied to clipboard
inline fun <T : RealmObject> RealmSet<T>.copyFromRealm(depth: UInt = UInt.MAX_VALUE): Set<T>
Content copied to clipboard
Makes an unmanaged in-memory copy of the elements in a managed RealmSet.
query
Link copied to clipboard
fun <T : BaseRealmObject> RealmSet<T>.query(filter: String = TRUE_PREDICATE, vararg arguments: Any?): RealmQuery<T>
Content copied to clipboard