kotlinpoet / com.squareup.kotlinpoet / ParameterizedTypeName

ParameterizedTypeName

class ParameterizedTypeName : TypeName

Properties

rawType

val rawType: ClassName

typeArguments

val typeArguments: List<TypeName>

Inherited Properties

annotations

val annotations: List<AnnotationSpec>

isAnnotated

val isAnnotated: Boolean

nullable

val nullable: Boolean

Functions

annotated

fun annotated(annotations: List<AnnotationSpec>): ParameterizedTypeName

asNonNullable

fun asNonNullable(): ParameterizedTypeName

asNullable

fun asNullable(): ParameterizedTypeName

nestedClass

fun nestedClass(name: String, typeArguments: List<TypeName>): ParameterizedTypeName

Returns a new ParameterizedTypeName instance for the specified name as nested inside this class, with the specified typeArguments.

withoutAnnotations

fun withoutAnnotations(): ParameterizedTypeName

Inherited Functions

annotated

fun annotated(vararg annotations: AnnotationSpec): TypeName

equals

open fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Companion Object Functions

get

fun get(rawType: ClassName, vararg typeArguments: TypeName): ParameterizedTypeName
fun get(rawType: KClass<*>, vararg typeArguments: KClass<*>): ParameterizedTypeName
fun get(rawType: Class<*>, vararg typeArguments: Type): ParameterizedTypeName

Returns a parameterized type, applying typeArguments to rawType.