Realm objects are managed so getter of some field return it's up-to-date value, directly from the original object (this getter "override" by the getter of the proxy object of this Realm object). In addition, in this way, the evaluation of the field is lazy so all the Realm objects are just references.
In the new version of Realm, we can define Realm objects with public fields without getters so how the Realm mechanism works for these objects?
- Is the evaluation of these fields lazy?
- Are the values of these fields up-to-date?
- Are these objects just references without any value at all?
if the answers for all is yes, how can it possible?
Aucun commentaire:
Enregistrer un commentaire