plus
@ExperimentalSince(version = KotoolsTypesVersion.V4_5_0)
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)
Content copied to clipboard
The NotBlankString type being an inline value class, this method is not available yet for Java users.