Companion

object Companion

Contains static declarations for the NotBlankString type.

Functions

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_0)
fun create(value: Any?): NotBlankString

Creates a NotBlankString from the string representation of the specified value, or throws an IllegalArgumentException if its string representation is blank.

Link copied to clipboard
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_0)
fun createOrNull(value: Any?): NotBlankString?

Creates a NotBlankString from the string representation of the specified value, or returns null if its string representation is blank.