com.avito.plugin.internal.StringExt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signer Show documentation
Show all versions of signer Show documentation
Collection of infrastructure libraries and gradle plugins of Avito Android project
The newest version!
package com.avito.plugin.internal
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.contract
@OptIn(ExperimentalContracts::class)
internal fun String?.hasContent(): Boolean {
contract {
returns(true) implies (this@hasContent != null)
}
if (isNullOrBlank()) return false
if (this == "null") return false
return true
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy