org.glassfish.pfl.dynamic.copyobject.impl
Class ObjectCopierImpl
java.lang.Object
org.glassfish.pfl.dynamic.copyobject.impl.ObjectCopierImpl
- All Implemented Interfaces:
- ObjectCopier
public class ObjectCopierImpl
- extends Object
- implements ObjectCopier
Class used to deep copy arbitrary data. A single
ObjectCopierImpl
instance will preserve all object aliasing across multiple calls
to copy.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectCopierImpl
public ObjectCopierImpl()
copy
public Object copy(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
Copyright © 2013 Oracle. All Rights Reserved.