Package kotools.types.string
Types
NotBlankString
Link copied to clipboard
@SinceKotools(project = Project.Types, version = "1.2")
Content copied to clipboard
Representation of strings that have at least one character, excluding whitespaces.
Functions
compareTo
Link copied to clipboard
@SinceKotools(project = Project.Types, version = "2.0")
Content copied to clipboard
getOrNull
Link copied to clipboard
NotBlankString
Link copied to clipboard
@SinceKotools(project = Project.Types, version = "1.2")
Content copied to clipboard
Returns the value as a NotBlankString, or throws an NotBlankString.ConstructionError if the value is blank.
NotBlankStringOrNull
Link copied to clipboard
@SinceKotools(project = Project.Types, version = "3.2", stability = StabilityLevel.Alpha)
Content copied to clipboard
Returns the value as a NotBlankString, or returns null
if the value is blank.
notBlankStringOrThrow
Link copied to clipboard
@SinceKotools(project = Project.Types, version = "3.2", stability = StabilityLevel.Alpha)
Content copied to clipboard
Returns the value as a NotBlankString, or throws an IllegalArgumentException if the value is blank.
toNotBlankString
Link copied to clipboard
@SinceKotools(project = Project.Types, version = "1.2")
Content copied to clipboard
Returns this value as a NotBlankString, or throws an NotBlankString.ConstructionError if this value is blank.
toNotBlankStringOrNull
Link copied to clipboard
@SinceKotools(project = Project.Types, version = "1.2")
Content copied to clipboard
Returns this value as a NotBlankString, or returns null
if this value is blank.
toNotBlankStringOrThrow
Link copied to clipboard
@SinceKotools(project = Project.Types, version = "3.2", stability = StabilityLevel.Alpha)
Content copied to clipboard
Returns this value as a NotBlankString, or throws an IllegalArgumentException if this value is blank.