Package-level declarations

Contains types such as NotBlankString for manipulating text.

Contains types such as NotBlankString for manipulating text.

Types

Link copied to clipboard
@Serializable(with = NotBlankStringSerializer::class)
interface NotBlankString : Comparable<NotBlankString>

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

Functions

Link copied to clipboard
infix operator fun String.compareTo(other: NotBlankString): Int

Compares this value lexicographically with the other value for order. Returns zero if this value equals the other value, a negative number if this value is less than the other value, or a positive number if this value is greater than the other value.

Link copied to clipboard
infix fun NotBlankString.getOrNull(index: PositiveInt): Char?

Returns the character of this value at the specified index, or returns null if the index is out of bounds.

Link copied to clipboard

Returns the value as a NotBlankString, or throws an NotBlankString.ConstructionError if the value is blank.

Link copied to clipboard

Returns the value as a NotBlankString, or returns null if the value is blank.

Link copied to clipboard

Returns the value as a NotBlankString, or throws an IllegalArgumentException if the value is blank.

Link copied to clipboard

Returns this value as a NotBlankString, or throws an NotBlankString.ConstructionError if this value is blank.

Link copied to clipboard

Returns this value as a NotBlankString, or returns null if this value is blank.

Link copied to clipboard

Returns this value as a NotBlankString, or throws an IllegalArgumentException if this value is blank.