# getAsMap

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

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).

This operation is eager and will cause all elements of the collection to be realized.

#### Return

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

#### Since

0.9