A simple Kotlin library that adds a few extra extensions on top of the Kotlin stdlib.
The current version of the library is published to the GitHub Package Registry for this repo.
https://github.com/smyrick/kotlin-extensions/packages
This library exposes a few helpful functions that you just need to import. They are mostly Kotlin extensions functions
import dev.smyrick.kotlin.bool.toNonNull
val nullableBoolean: Boolean? = null
// Without helper
if (nullableBoolean == false || nullableBoolean == null) {
// Do something
}
// With helper
if (nullableBoolean.toNonNull() == false) {
// Do something
}
This project is currently maintained soley by @smyrick.
If you need to raise an issue or question about this library, please create an issue here and tag it with the appropiate label.
If you need to contact me directly, please see my contact details on my profile page.
To get started, please fork the repo and checkout a new branch. You can then build the library locally with the Gradle wrapper
./gradlew build
See more info in CONTRIBUTING.md
This library is licensed under the MIT License