CustomPersistentDataTypeBuilder

A builder for creating a custom persistent data type.

This builder allows for the configuration of the converter, custom class, and conversion functions.

Author

Fantamomo

Since

1.0-SNAPSHOT

Parameters

P

The primitive type.

I

The intermediate type.

C

The custom type.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var customClass: KClass<C>

Functions

Link copied to clipboard
fun toCustom(func: (I) -> C)
Link copied to clipboard
fun toIntermediate(func: (C) -> I)