Companion

object Companion

Functions

Link copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
fun consumerOf(inType: <Error class: unknown class>): WildcardTypeName

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

Link copied to clipboard
@DelicateKotlinPoetApi(message = "Java reflection APIs don't give complete information on Kotlin types. Consider using the kotlinpoet-metadata APIs instead.")
fun producerOf(outType: <Error class: unknown class>): WildcardTypeName

Returns a type that represents an unknown type that produces outType. For example, if outType is CharSequence, this returns out CharSequence. If outType is Any?, this returns *, which is shorthand for out Any?.