io.realm
Implemented interfaces:
RealmCollection is the root of the collection hierarchy that Realm supports. It defines operations on data collections and the behavior that they will have in all implementations of RealmCollection s.
Realm collections are "live" views to the underlying data. This means that they automatically will be kept up to date. As a consequence, using methods like Collections.unmodifiableCollection(Collection) will not prevent a collection from being modified.
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public double | |
public booleano | |
public booleano | This deletes all objects in the collection from the underlying Realm as well as from the collection. |
public booleano | isLoaded () Checks if a collection has finished loading its data yet. |
public booleano | isManaged () Checks if the collection is managed by Realm. |
public booleano | isValid () Checks if the collection is still valid to use, i.e., the io.realm.Realm instance hasn't been closed. |
public booleano | load () Bloquea la recopilación hasta que todos los datos estén disponibles. |
public Number | |
public Date | |
public Number | |
public Date | |
public Number | |
where () Returns a RealmQuery , which can be used to query for specific objects from this collection. |
Inherited Methods
Detalle del método
average
Devuelve el promedio de un campo dado. Parámetros
Devuelve el promedio del campo indicado entre los objetos de los resultados de la query. Esto será del tipo double para todos los campos de tipo numérico. Si no existen objetos o todos tienen Throws
|
contiene
Tests whether this Parámetros
Devuelve
Throws
|
deleteAllFromRealm
public boolean deleteAllFromRealm () |
|---|
This deletes all objects in the collection from the underlying Realm as well as from the collection. Devuelve
Throws
|
isLoaded
public boolean isLoaded () |
|---|
Checks if a collection has finished loading its data yet. Devuelve
|
esGestionado
public boolean isManaged () |
|---|
Checks if the collection is managed by Realm. A managed collection is just a wrapper around the data in the underlying Realm file. On Looper threads, a managed collection will be live-updated so it always points to the latest data. Managed collections are thread confined so that they cannot be accessed from other threads than the one that created them.If this method returns Devuelve
|
isValid
public boolean isValid () |
|---|
Checks if the collection is still valid to use, i.e., the io.realm.Realm instance hasn't been closed. It will always return Devuelve
|
carga
public boolean load () |
|---|
Bloquea la recopilación hasta que todos los datos estén disponibles. Devuelve
|
máximo
Finds the maximum value of a field. Parámetros
Devuelve si no existen objetos o todos tienen Throws
|
fecha máxima
Encuentra la fecha máxima. Parámetros
Devuelve Si no existen objetos o si todos tienen Throws
|
min
Finds the minimum value of a field. Parámetros
Devuelve si no existen objetos o todos tienen Throws
|
minDate
Finds the minimum date. Parámetros
Devuelve if no objects exist or they all have Throws
|
suma
Calculates the sum of a given field. Parámetros
Devuelve la suma. Si no existen objetos o todos tienen Throws
|
dónde
public RealmQuery where () |
|---|
Returns a RealmQuery , which can be used to query for specific objects from this collection. Devuelve un objeto de RealmQuery. Throws
|