This page is no longer maintained — Please continue to the home page at

Need help cleaning up this code

No replies
Joined: 2011-12-16,
User offline. Last seen 42 years 45 weeks ago.
Hi Everyone,
I would like to know how I can clean up this code to make it more Scala like.
Mainly I would like to see if it's possible to get rid of "val primitiveType: Class[P],  val valueType: Class[V]" and use Manifest. Manifests are still a bit confusing concept for me.
The point of this class is to convert a non-primitive value (i.e. TimeZone) to a primitive value (String) and back. This way I can serialize an object into a Map and back with full control.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland