Package-level declarations

Contains types such as NotBlankString for manipulating text.

Types

Link copied to clipboard
@Serializable(with = NotBlankStringSerializer::class)
@Since(version = KotoolsTypesVersion.V4_0_0)
value class NotBlankString : Comparable<NotBlankString>

Represents a string that has at least one character excluding whitespaces.

Functions

Link copied to clipboard
@Since(version = KotoolsTypesVersion.V4_0_0)
fun String.toNotBlankString(): Result<NotBlankString>

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