Search code examples
javadatabaserealmrealm-list

Does Realm Already Support Primitive List or Not?


I've been waiting for Realm to support List < Primitive > (like List < Long >) and I've just seen that the issue related to this feature has been closed and the comment was that this feature was added at the version 3.0.0 of Realm. (Realm Issue 1881) The problem is, I am using the version 3.7.2 which is the newest one:

classpath "io.realm:realm-gradle-plugin:3.7.2"

And I'm still not able to compile Realm with a primitive list. So, does Realm already support primitive list or not?

Thanks.


Solution

  • Yes, Realm Java supports lists of primitives since 4.0.0.

    Here are the docs.