objectbox / objectbox/objectbox-java
Additional Kotlin extensions
Open
@greenrobot-team is already working on this.
Since May 14, 2018.
help wanted
- Dominant language
- Java
- Stars
- 4.6k
- Forks
- 311
- PR merge metrics
- No merged PRs in 30d
Description
ObjectBox already provides some minimal Kotlin extensions:
// Regular
val box: Box<DataClassEntity> = store.boxFor(DataClassEntity::class.java)
// With extension
val box: Box<DataClassEntity> = store.boxFor()
// Regular
val query = box.query().`in`(property, array).build()
// With extension
val query = box.query().inValues(property, array).build()
This issue is to track what other Kotlin extensions may be added.
Some ground rules:
- should leverage features unique to Kotlin
- should not just be a shorter version of an existing method
- should not optimize fur just a single use case
Things to look out for:
- default args for methods
- builder pattern
- making util methods discoverable from the type they operate on
- destructuring
-ut
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.