Skip to content

dvpermyakov/serialization-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Util classes for serialize an object to a string and deserialize a string to an object

For example, if you have a class:

case class Sample(str: String = "str", value: Int = 100)

You can use serialization method in order to convert the object to the string:

val str: String = Serialization.serialize(Sample())

The string will be:

Sample-str:str:String+value:100:int

You can deserialize the string to the object:

val sample: Sample = Serialization.deserialize(str)

Releases

No releases published

Packages

No packages published

Languages