Class CloneUtils


  • public class CloneUtils
    extends java.lang.Object
    A collection of utilities to workaround limitations of Java clone framework.
    Since:
    4.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Object clone​(java.lang.Object obj)  
      static <T> T cloneObject​(T obj)  
      • Methods inherited from class java.lang.Object

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

      • cloneObject

        public static <T> T cloneObject​(T obj)
                                 throws java.lang.CloneNotSupportedException
        Throws:
        java.lang.CloneNotSupportedException
        Since:
        4.3
      • clone

        public static java.lang.Object clone​(java.lang.Object obj)
                                      throws java.lang.CloneNotSupportedException
        Throws:
        java.lang.CloneNotSupportedException