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-jvm Show documentation
Show all versions of serialize-core-jvm Show documentation
JSON and YAML serialization support for logic terms and clauses
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