commonMain.it.unibo.tuprolog.serialize.Serializer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serialize-core Show documentation
Show all versions of serialize-core Show documentation
Multi-platform logic programming ecosystem supporting JVM, JavaScript, and Android
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