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

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

Go to download

Multi-platform logic programming ecosystem supporting JVM, JavaScript, and Android

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