Class Cloner

java.lang.Object
util.Cloner

public class Cloner extends Object
Cloner provides a utility method for deep cloning objects using Kryo serialization.
  • Method Details

    • deepClone

      public static <T> T deepClone(T object)
      Performs a deep clone of the given object using Kryo serialization.
      Type Parameters:
      T - the type of the object
      Parameters:
      object - the object to deep clone
      Returns:
      a deep clone of the object