Package com.bazaarvoice.jolt.common
Class DeepCopy
java.lang.Object
com.bazaarvoice.jolt.common.DeepCopy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
simpleDeepCopy
(Object object) Simple deep copy, that leverages Java Serialization.
-
Constructor Details
-
DeepCopy
public DeepCopy()
-
-
Method Details
-
simpleDeepCopy
Simple deep copy, that leverages Java Serialization. Supplied object is serialized to an in memory buffer (byte array), and then a new object is reconstituted from that byte array. This is meant for copying small objects or object graphs, and will probably do nasty things if asked to copy a large graph.- Parameters:
object
- object to deep copy- Returns:
- deep copy of the object
-