isValid in interface RealmCollection<E> Returns: true if it is still valid to use or an unmanaged collection, false otherwise. freeze public RealmList<E> freeze() Returns a frozen snapshot of this collection. The frozen copy can be read and queried from any thread without throwing an Illegal...
mFab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Random random = new Random(); getRealm().executeTransactionAsync(new Realm.Transaction() { @Override public void execute(Realm realm) { Random random = new Random(); App app = realm.where(App....
Returns a frozen snapshot of this collection. The frozen copy can be read and queried from any thread without throwing an IllegalStateException. Freezing a collection also creates a Realm which has its own lifecycle, but if the live Realm that spawned the original collection is fully closed ...
isManaged in interface RealmCollection<E> Returns: true if this is a managed RealmCollection, false otherwise. add public void add(int location, @Nullable E element) Inserts the specified object into this List at the specified location. The object is inserted before any previous element at ...
Returns a frozen snapshot of this collection. The frozen copy can be read and queried from any thread without throwing an IllegalStateException. Freezing a collection also creates a Realm which has its own lifecycle, but if the live Realm that spawned the original collection is fully closed ...