Class CloneUtil


  • public final class CloneUtil
    extends java.lang.Object
    This is a utility class that uses the XStream mechanism to clone objects. Custom converters can be provided in order to control behaviour of the cloning.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T clone​(java.lang.Class<T> clazz, T object)  
      static <T> T clone​(java.lang.Class<T> clazz, T object, com.thoughtworks.xstream.converters.Converter converter)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • clone

        public static <T> T clone​(java.lang.Class<T> clazz,
                                  T object)
      • clone

        public static <T> T clone​(java.lang.Class<T> clazz,
                                  T object,
                                  com.thoughtworks.xstream.converters.Converter converter)