.port_store.1.3.1.source-code.Mapper.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of port_store Show documentation
Show all versions of port_store Show documentation
The atoms of your platform
package com.hexagonkt.store
import kotlin.reflect.KProperty1
/**
* Maps objects and fields from/to stores and filters.
*/
interface Mapper {
val fields: Map>
fun toStore(instance: T): Map
fun fromStore(map: Map): T
fun toStore(property: String, value: Any): Any = value
fun fromStore(property: String, value: Any): Any = value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy