All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.port_store.1.3.1.source-code.Mapper.kt Maven / Gradle / Ivy

There is a newer version: 1.4.4
Show newest version
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