api / org.gradle.api / NamedDomainObjectCollection / getAsMap

getAsMap

abstract fun getAsMap(): SortedMap<String, T>

Returns the objects in this collection, as a map from object name to object instance.

The map is ordered by the natural ordering of the object names (i.e. keys).

Return
The objects. Returns an empty map if this collection is empty.