Inheritance / Polymorphism
A highly request feature is polymorphism. Mostly for use in ListAdapters, but a lot of other scenarios exists. We need support for the following: - Abstract RealmObject classes - Query support Example ``` public abstract Animal extends RealmObject { private String name; } public class Dog extends Animal { private boolean willPlayCatch; } public class Spider extends Animal { private boolean isScary; } // Following should be possible RealmResults<Animal> animals = realm.where(Animal.class).equalsTo("name","Foo").findAll(); String name = animals.get(0).getName(); RealmResults<Dog> dogs = realm.where(Dog.class).equalsTo("name","Foo").and().equalsTo("willPlayCatch", true).findAll(); String name = dogs.get(0).getName(); ```
Posted by cmelchior on Jan 19, 2015, 7:26 AM
Tags
Related issues
- some bike vendor told me that the biggest problem with regular to ebike conversion was that regular bike frames were not strong enough to...
- I think of this as the kiosk economy.
- What a goofy comment.
- There's lots of evidence for positive influences of Caffeine on the body (some negative as well), especially the brain.
- Compose support in WSLc
- [RFC] Roadmap to v2.0
Raise real-world problems, find people facing the same issue, and discuss solutions.8,000 issues0 comments
support (Other)
some bike vendor told me that the biggest problem with regular to ebike conversion was that regular bike frames were not strong enough to...
I think of this as the kiosk economy.
What a goofy comment.
There's lots of evidence for positive influences of Caffeine on the body (some negative as well), especially the brain.
Compose support in WSLc
[RFC] Roadmap to v2.0
[Feature]: Add TurboQuant Support for KV Cache Quantization
Support for AGENTS.md and .agents/skills/, the community has been asking since August 2025
Inheritance / Polymorphism
A highly request feature is polymorphism. Mostly for use in ListAdapters, but a lot of other scenarios exists. We need support for the following: - Abstract RealmObject classes - Query support Example ``` public abstract Animal extends RealmObject { private String name; } public class Dog extends Animal { private boolean willPlayCatch; } public class Spider extends Animal { private boolean isScary; } // Following should be possible RealmResults<Animal> animals = realm.where(Animal.class).equalsTo("name","Foo").findAll(); String name = animals.get(0).getName(); RealmResults<Dog> dogs = realm.where(Dog.class).equalsTo("name","Foo").and().equalsTo("willPlayCatch", true).findAll(); String name = dogs.get(0).getName(); ```
Comments (0)
No comments yet. Start the discussion.