Kotlin HashSet isNullOrEmpty()
Syntax & Examples


Syntax of HashSet.isNullOrEmpty()

The syntax of HashSet.isNullOrEmpty() extension function is:

fun <T> Collection<T>?.isNullOrEmpty(): Boolean

This isNullOrEmpty() extension function of HashSet returns true if this nullable collection is either null or empty.