isEmpty

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

Creates a Specification 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 Specification that tests whether a collection is empty.