The annotation can be used to tell Realm to disallow null values in a field, making it required rather than optional. The boxed types Boolean, Byte, Short, Integer, Long, Float and Double can also be used in model classes. In addition to those standard field types, Realm supports subclasses of RealmObject and RealmList to model relationships. The integer types byte, short, int, and long are all mapped to long within Realm. Realm supports boolean, byte, short, int, long, float, double, String, Date and byte field types. Define your model class by extending RealmObject public class Dog extends RealmObject Field types
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |