objectbox-java
objectbox-java copied to clipboard
add contains method in QueryBuilder for array properties (like BooleanArray,IntArray,LongArray in Kotlin)
Is there an existing issue?
- [x] I have searched existing issues
Use case
class Entity {
var ids: LongArray? = null
}
fun QueryBuilder<Entity>.filter(id: Long) {
contains(Entity_.ids, id)
}
Proposed solution
public QueryBuilder<T> contains(Property<T> property, bool value)
public QueryBuilder<T> contains(Property<T> property, int value)
public QueryBuilder<T> contains(Property<T> property, long value)
Alternatives
TODO Describe any alternative solutions or features you've considered.
Additional context
TODO Add any other context (e.g. platform or language) about the feature request here.
Thanks for the suggestion! For anyone else interested, please thumbs up the first post. It helps us when deciding on new features.