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.

size

abstract fun size(): Int(source)

Returns the number of items in this collection.

Return

the size of this collection.

Since

2.5