ValueClassSupport

expect object ValueClassSupport
actual object ValueClassSupport

Properties

Link copied to clipboard
expect val KClass<*>.boxedClass: KClass<*>

Underlying property class of a value class, or self.

actual val KClass<*>.boxedClass: KClass<*>

Underlying property class of a value class or self.

Link copied to clipboard
expect val <T : Any> T.boxedValue: Any?

Underlying property value of a value class or self.

actual val <T : Any> T.boxedValue: Any?

Underlying property value of a value class or self. Includes workaround for Result class

Functions

Link copied to clipboard
expect fun <T : Any> T.maybeUnboxValueForMethodReturn(method: <Error class: unknown class>): Any?

Unboxes the underlying property value of a value class or self, as long the unboxed value is appropriate for the given method's return type.