Class DeepCopy

java.lang.Object
com.bazaarvoice.jolt.common.DeepCopy

public class DeepCopy extends Object
  • Constructor Details

    • DeepCopy

      public DeepCopy()
  • Method Details

    • simpleDeepCopy

      public static Object simpleDeepCopy(Object object)
      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