collectionElementType

open fun collectionElementType(context: Type, contextRawType: Class<out Any>): Type

Returns the element type of this collection type.

Throws

if this type is not a collection.