kotlinpoet / com.squareup.kotlinpoet / WildcardTypeName / consumerOf

consumerOf

@JvmStatic fun consumerOf(inType: TypeName): WildcardTypeName

Returns a type that represents an unknown type that consumes inType. For example, if inType is String, this returns in String.

@JvmStatic fun consumerOf(inType: Type): WildcardTypeName
@JvmStatic fun consumerOf(inType: KClass<*>): WildcardTypeName