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

commonMain.it.unibo.tuprolog.serialize.Serializer.kt Maven / Gradle / Ivy

The newest version!
package it.unibo.tuprolog.serialize

import kotlin.js.JsName

interface Serializer {
    @JsName("mimeType")
    val mimeType: MimeType

    @JsName("serialize")
    fun serialize(value: T): String

    @JsName("serializeMany")
    fun serializeMany(vararg values: T): String = serializeMany(listOf(*values))

    @JsName("serializeManyIterable")
    fun serializeMany(values: Iterable): String

    @JsName("serializeManySequence")
    fun serializeMany(values: Sequence): String = serializeMany(values.asIterable())
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy