Skip to content

alexrobin/cloning

This branch is 43 commits behind kostaskougios/cloning:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c5010b4 · Mar 15, 2020
Mar 8, 2020
Dec 16, 2019
Aug 20, 2013
Nov 3, 2010
Jul 20, 2012
Apr 5, 2015
Mar 15, 2020

Repository files navigation

Summary

The cloning library is a small, open source (Apache licensed) Java library which deep-clones objects. 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.

Here is an example of its usage:

Cloner cloner=new Cloner();

MyClass clone=cloner.deepClone(o);
// clone is a deep-clone of o

IMPORTANT : deep cloning of Java classes might mean thousands of objects are cloned! Also cloning of files and streams might make the JVM crash. Enable dumping of cloned classes to stdout during development is highly recommended in order to view what is cloned.

Useful links

About

deep clone java objects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%