Class ObjectCopierImpl

  • All Implemented Interfaces:
    ObjectCopier

    public class ObjectCopierImpl
    extends java.lang.Object
    implements ObjectCopier
    Class used to deep copy arbitrary data. A single ObjectCopierImpl instance will preserve all object aliasing across multiple calls to copy.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object copy​(java.lang.Object obj)
      Return a deep copy of obj.
      • Methods inherited from class java.lang.Object

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

      • ObjectCopierImpl

        public ObjectCopierImpl()
    • Method Detail

      • copy

        public java.lang.Object copy​(java.lang.Object obj)
                              throws ReflectiveCopyException
        Return a deep copy of obj. Aliasing is preserved within obj and between objects passed in multiple calls to the same instance of ReflectObjectCopierImpl.
        Specified by:
        copy in interface ObjectCopier
        Throws:
        ReflectiveCopyException