Skip to content

sczerwinski/kotlin-util

Repository files navigation

Build Kotlin Multiplatform
Release Maven Central Sonatype Snapshot

icon.svg Kotlin Utilities

Project Setup

Gradle

Kotlin

implementation("it.czerwinski:kotlin-util:2.0.0")

Groovy

implementation 'it.czerwinski:kotlin-util:2.0.0'

Maven

<dependency>
  <groupId>it.czerwinski</groupId>
  <artifactId>kotlin-util</artifactId>
  <version>2.0.0</version>
</dependency>

Kotlin Multiplatform Projects

In multiplatform projects, the library can be used as commonMain dependency.

Java Modules (JPMS)

In projects using Java Modules (JPMS), add the following line to your module-info.java:

module your.module {
    requires it.czerwinski.kotlin.util;
}

Supported Types

Package it.czerwinski.kotlin.collections:

  • EmptyIterator
  • SingletonIterator

Package it.czerwinski.kotlin.util:

  • Option
  • Either
  • Try

For a more detailed documentation, visit project website.