kotools / libraries

Multiplatform libraries for expressive programming with Kotlin.
https://kotools.github.io/libraries
MIT License
0 stars 0 forks source link

Builders of `NotBlankString` #149

Closed LVMVRQUXL closed 1 year ago

LVMVRQUXL commented 1 year ago

Description

Replace existing builders of NotBlankString by the following ones:

class NotBlankString(value: String) { /* ... */ }

@Throws(BlankStringException::class)
fun String.toNotBlankString(): NotBlankString = TODO()
fun String.toNotBlankStringOrNull(): NotBlankString? = TODO()

object BlankStringException : IllegalArgumentException()

Checklist

LVMVRQUXL commented 1 year ago

Included in #133.