isNotNullOrEmpty

fun String?.isNotNullOrEmpty(): Boolean

Deprecated

This function is deprecated and will be removed in next major release.Use isNotNullNotEmpty() instead.

Replace with

import com.parsuomash.affogato.core.ktx.text.isNotNullNotEmpty
isNotNullNotEmpty()

Return true if string not null and not empty.

Example:

val text: String? = null
text.isNotNullOrEmpty() // false

val text2 = "null"
text2.isNotNullOrEmpty() // false

val text3 = "hi"
text3.isNotNullOrEmpty() // true

val text4 = ""
text4.isNotNullOrEmpty() // false

Since

1.1.0

See also

isNotBlank