File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
kotlin-utils/src/main/java/com/costular/kotlin_utils/versions Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ These methods are static.
5757``` kotlin
5858doWithVersion(version: Int , lambda) // ==
5959doWithAtLeastVersion(version: Int , lambda) // >=
60- doWithBiggerVersion (version: Int , lambda) // >
61- doWithSmallerVersion (version: Int , lambda) // <
60+ doWithHigherVersion (version: Int , lambda) // >
61+ doWithLowerVersion (version: Int , lambda) // <
6262```
6363
6464Example
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ class VersionUtils {
2121 }
2222 }
2323
24- inline fun doWithBiggerVersion (version : Int , body : () -> Unit ) {
24+ inline fun doWithHigherVersion (version : Int , body : () -> Unit ) {
2525 if (Build .VERSION .SDK_INT > version) {
2626 body()
2727 }
2828 }
2929
30- inline fun doWithSmallerVersion (version : Int , body : () -> Unit ) {
30+ inline fun doWithLowerVersion (version : Int , body : () -> Unit ) {
3131 if (Build .VERSION .SDK_INT < version) {
3232 body()
3333 }
You can’t perform that action at this time.
0 commit comments