KTypeExtension extension
- on
Properties
- javaType → Type
-
Available on KType, provided by the KTypeExtension extension
Returns a Java Type instance corresponding to the given Kotlin type.no setter -
jvmErasure
→ KClass<
Any> -
Available on KType, provided by the KTypeExtension extension
Returns the KClass instance representing the runtime class to which this type is erased to on JVM.no setter
Methods
-
isSubtypeOf(
KType other) → Boolean -
Available on KType, provided by the KTypeExtension extension
Returnstrue
ifthis
type is the same or is a subtype ofother
,false
otherwise. -
isSupertypeOf(
KType other) → Boolean -
Available on KType, provided by the KTypeExtension extension
Returnstrue
ifthis
type is the same or is a supertype ofother
,false
otherwise. -
withNullability(
Boolean nullable) → KType -
Available on KType, provided by the KTypeExtension extension
Returns a new type with the same classifier, arguments and annotations as the given type, and with the given nullability.