Companion

object Companion

Functions

consumerOf
Link copied to clipboard
fun consumerOf(inType: TypeName): WildcardTypeName
Returns a type that represents an unknown type that consumes inType.
@DelicateKotlinPoetApi(message = Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.)
fun consumerOf(inType: Type): WildcardTypeName
fun consumerOf(inType: KClass<*>): WildcardTypeName
producerOf
Link copied to clipboard
fun producerOf(outType: TypeName): WildcardTypeName
Returns a type that represents an unknown type that produces outType.
@DelicateKotlinPoetApi(message = Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.)
fun producerOf(outType: Type): WildcardTypeName
fun producerOf(outType: KClass<*>): WildcardTypeName