Java – I can have the ArrayList string in the realm object Android
•
Java
Since we don't have any list data types in the domain, how can we use ArrayList < string > to create objects in a domain?
public class CustomObject extends RealmObject { private String name; private String age; }
Then I can use
private RealmList<CustomObject> customObjectList;
In another realmobject
Do I have to do the same for the ArrayList string? Make string object 2 Use this object in the realm list
Solution
Yes, you must manually put the string in stringobject We hope to add support for realmlist < string >, realmlist < integer >, but it still has a long way to go
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码