public abstract class RealmObject
In Realm you define your model classes by sub-classing RealmObject and adding fields to be
persisted. You then create your objects within a Realm, and use your custom subclasses instead
of using the RealmObject class directly.
An annotation processor will create a proxy class for your RealmObject subclass. The getters and
setters should not contain any custom code of logic as they are overridden as part of the annotation
Removes the object from the Realm it is currently associated to.
After this method is called the object will be invalid and any operation (read or write)
performed on it will fail with an IllegalStateException
public boolean isValid()
Check if the RealmObject is still valid to use ie. the RealmObject hasn't been deleted nor
has the Realm been closed.
true if the object is still accessible, false otherwise.