TypeInfo

class TypeInfo(val type: KClass<*>, val isNullable: Boolean, val kotlinType: KType? = null)(source)

Ktor type information.

Report a problem

Constructors

Link copied to clipboard
constructor(type: KClass<*>, isNullable: Boolean, kotlinType: KType? = null)
constructor(type: KClass<*>, kotlinType: KType? = null)
constructor(type: KClass<*>, reifiedType: Type, kotlinType: KType? = null)

Properties

Link copied to clipboard

true when null is a valid value for this type. This is stored separately from kotlinType because kotlinType can be null and we want to preserve nullability in that case.

Link copied to clipboard

Kotlin reified type with all generic type parameters, or null when type information is unavailable.

Link copied to clipboard

Type with substituted generics.

Link copied to clipboard
val type: KClass<*>

Source KClass<*>

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String