Custom Persistent Data Type Impl
class CustomPersistentDataTypeImpl<P : Any, I : Any, C : Any>(val converter: PersistentDataType<P, I>, customClass: KClass<C>, toIntermediateFunc: (C) -> I, toCustomFunc: (I) -> C) : CustomPersistentDataType<P, I, C> (source)
An implementation of the CustomPersistentDataType interface.
This class provides the implementation for converting between the primitive type and the custom type using the provided conversion functions.
Author
Fantamomo
Since
1.0-SNAPSHOT
Parameters
P
The primitive type.
I
The intermediate type.
C
The custom type.
Properties
Functions
Link copied to clipboard
inline fun <P : Any, C : Any> PersistentDataType<P, C>.asNullable(): NullablePersistentDataType<P, C>
Link copied to clipboard
Converts a primitive data type to a complex data type.
Link copied to clipboard
Converts a complex data type to a primitive data type.
Link copied to clipboard
Returns the KClass of the complex data type.
Link copied to clipboard
Returns the KClass of the primitive data type.
Link copied to clipboard
Converts the custom type to the intermediate type.