objectbox / objectbox/objectbox-java
Additional Kotlin extensions
Đang mở
@greenrobot-team đang làm issue này rồi.
Từ ngày 14/5/2018.
help wanted
- Ngôn ngữ chính
- Java
- Star
- 4.6k
- Fork
- 311
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.