csperandio.unifiedlog.events.Converter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unified-log Show documentation
Show all versions of unified-log Show documentation
Base interfaces and implementation for Event-sourcing and unified-log
The newest version!
package csperandio.unifiedlog.events
/**
* Define how any object can be converted into byte array.
*/
interface Converter {
/**
* Convert an object into a byte array.
*
* @param o Object to convert
* @return The byte array
*/
fun convert(o: Any): ByteArray
}