Implement the following operations for easying the creation of a NotBlankString type:
inline fun String.toNotBlankStringOrElse(onFailure: (IllegalArgumentException) -> NotBlankString): NotBlankString
fun String.toNotBlankStringOrNull(): NotBlankString?
fun String.toNotBlankStringOrThrow(): NotBlankString
Checklist
[ ] Implement the toNotBlankStringOrElse function.
[ ] Implement the toNotBlankStringOrNull function.
[ ] Implement the toNotBlankStringOrThrow function.
Description
Implement the following operations for easying the creation of a
NotBlankString
type:Checklist
toNotBlankStringOrElse
function.toNotBlankStringOrNull
function.toNotBlankStringOrThrow
function.Work in progress
section in changelog.