NotBlankString

@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.1")
open infix operator override fun compareTo(other: NotBlankString): Int

Compares this string alphabetically with the other one for order. Returns zero if this string equals the other one, a negative number if it's less than the other one, or a positive number if it's greater than the other one.

Link copied to clipboard
open override fun toString(): String

Returns this string as a String.

Properties

Link copied to clipboard

Returns the length of this string.