isEmpty

fun <T : Any, E, P : Collection<E>> KProperty1<T, P>.isEmpty(): PredicateSpecification<T>(source)

Creates a PredicateSpecification that tests whether a collection is empty.

Receiver

T – the type of the entity.

E - the type of the element in the Collection.

P - the type of the Collection property.

Return

A PredicateSpecification that tests whether a collection is empty.