ExplicitlyTagged

@Serializable
data class ExplicitlyTagged<T>(val value: T)(source)

Explicit-tag modelling wrapper.

This wrapper requires an effective implicit tag override resolving to CONTEXT-SPECIFIC + CONSTRUCTED. Missing/invalid configuration is rejected at runtime by the DER serializer/decoder.

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
val value: T

Functions

Link copied to clipboard
operator fun getValue(thisRef: Any?, property: Any?): T
Link copied to clipboard
operator fun <T> ExplicitlyTagged<T>?.getValue(thisRef: Any?, property: Any?): T?
Link copied to clipboard

Use like so: val foo by explicitlyTaggedProperty.orValue("Some sane default that must not even align on nullability")