api / org.gradle.api / NamedDomainObjectCollection / getNames

getNames

abstract fun getNames(): SortedSet<String>

Returns the names of the objects in this collection as a Set of Strings.

The set of names is in natural ordering.

Return
The names. Returns an empty set if this collection is empty.