For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

getNames

abstract fun getNames(): SortedSet<String>(source)

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

The set of names is in natural ordering.

This operation is lazy and pending elements of this collection will not be realized.

Return

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

Since

1.8