objectbox / objectbox/objectbox-java
Additional Kotlin extensions
Aperta
@greenrobot-team ci sta già lavorando.
Dal 14/5/2018.
help wanted
- Lingua principale
- Java
- Stelle
- 4.6k
- Fork
- 311
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.