public interface RealmModel
RealmObject
.
All helper methods available to classes that extend RealmObject are instead available as static methods:
Person p = realm.createObject(Person.class);
// With the RealmModel interface
RealmObject.isValid(p);
// With the RealmObject base class
p.isValid();
Note: Object implementing this interface needs also to be annotated with RealmClass
, so the annotation
processor can generate the underlining proxy class.
RealmObject