objectbox / objectbox/objectbox-java
Additional Kotlin extensions
未关闭
@greenrobot-team 已经在做这个了。
开始于 2018年5月14日。
help wanted
- 主要语言
- Java
- 星标
- 4.6k
- 派生
- 311
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。