MapPersistentDataType

class MapPersistentDataType<KP : Any, KC : Any, VP : Any, VC : Any>(val keyType: PersistentDataType<KP, KC>, val valueType: PersistentDataType<VP, VC>) : PersistentDataType<Map<KP, VP>, Map<KC, VC>> (source)

Constructors

Link copied to clipboard
constructor(keyType: PersistentDataType<KP, KC>, valueType: PersistentDataType<VP, VC>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
@JvmName(name = "createList")
inline fun <P : Any, C : Any> PersistentDataType<P, C>.asList(): ListPersistentDataType<P, C>
Link copied to clipboard
@JvmName(name = "createNullable")
inline fun <P : Any, C : Any> PersistentDataType<P, C>.asNullable(): NullablePersistentDataType<P, C>
Link copied to clipboard
@JvmName(name = "createSet")
inline fun <P : Any, C : Any> PersistentDataType<P, C>.asSet(): SetPersistentDataType<P, C>
Link copied to clipboard
open override fun convertToComplex(primitive: Map<KP, VP>): Map<KC, VC>

Converts a primitive data type to a complex data type.

Link copied to clipboard
open override fun convertToPrimitive(complex: Map<KC, VC>): Map<KP, VP>

Converts a complex data type to a primitive data type.

Link copied to clipboard
open override fun getComplexType(): KClass<Map<KC, VC>>

Returns the KClass of the complex data type.

Link copied to clipboard
open override fun getPrimitiveType(): KClass<Map<KP, VP>>

Returns the KClass of the primitive data type.

Link copied to clipboard
@JvmName(name = "createMap")
infix inline fun <KP : Any, KC : Any, VP : Any, VC : Any> PersistentDataType<KP, KC>.withMap(valueType: PersistentDataType<VP, VC>): MapPersistentDataType<KP, KC, VP, VC>