plus

@ExperimentalSince(version = KotoolsTypesVersion.V4_5_0)
operator fun plus(other: Any): NotBlankString

Concatenates this string with the string representation of the other object.


Calling from Kotlin

Here's an example of calling this method from Kotlin code:

val text: NotBlankString = "hello".toNotBlankString()
.getOrThrow()
val actual: NotBlankString = text + " world"
val expected: NotBlankString = "hello world".toNotBlankString()
.getOrThrow()
assertEquals(expected, actual)

The NotBlankString type being an inline value class, this method is not available yet for Java users.