Package-level declarations

Contains types such as NotBlankString for manipulating text.

Types

Link copied to clipboard
@Serializable(with = NotBlankStringSerializer::class)
@SinceKotoolsTypes(version = "4.0")
value class NotBlankString : Comparable<NotBlankString>

Representation of strings that have at least one character, excluding whitespaces.

Functions

Link copied to clipboard
@SinceKotoolsTypes(version = "4.0")
fun String.toNotBlankString(): Result<NotBlankString>

Returns this string as an encapsulated NotBlankString, or returns an encapsulated IllegalArgumentException if this string is blank.