kotlinpoet / com.squareup.kotlinpoet / WildcardTypeName / supertypeOf

supertypeOf

@JvmStatic fun supertypeOf(lowerBound: TypeName): WildcardTypeName

Returns a type that represents an unknown supertype of bound. For example, if bound is String.class, this returns ? super String.

@JvmStatic fun supertypeOf(lowerBound: Type): WildcardTypeName
@JvmStatic fun supertypeOf(lowerBound: KClass<*>): WildcardTypeName