Sunday, 16 June 2013

Library for cloning java objects

If you need to clone whole objects (f.e. map of maps) here is a library to do it in just one line:

The objects don't have to implement the Cloneable interface. Effectively, this library can clone ANY Java object. It can be used i.e. in cache implementations if you don't want the cached object to be modified or whenever you want to create a deep copy of objects.

Read more here:

No comments: