Skip to content

A simple Kotlin library that adds a few extra extensions on top of the Kotlin stdlib

License

Notifications You must be signed in to change notification settings

smyrick/kotlin-extensions

Repository files navigation

kotlin-extensions

Build

A simple Kotlin library that adds a few extra extensions on top of the Kotlin stdlib.

📦 Install

The current version of the library is published to the GitHub Package Registry for this repo.

https://github.com/smyrick/kotlin-extensions/packages

⌨️ Usage

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
}

👥 Contact

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.

✏️ Contributing

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

⚖️ License

This library is licensed under the MIT License

About

A simple Kotlin library that adds a few extra extensions on top of the Kotlin stdlib

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Languages