A set of gears for Kotlin.
Add the dependency:
repositories {
mavenCentral()
}
dependencies {
implementation("com.redmadrobot.gears:gears-kotlin:<version>")
}
The library was developed and tested with Kotlin 2.0.0
Gear | Description |
---|---|
T.applyIf |
Applies the given block of modifications to the T if the condition is true |
T.applyIfNotNull |
Applies the given block of modifications to the T if the value is not null |
Merge requests are welcome. For major changes, please open an issue first to discuss what you would like to change.