Class UnoptimizedDeepCopy
- java.lang.Object
- 
- gov.nih.mipav.view.renderer.WildMagic.AAM.UnoptimizedDeepCopy
 
- 
 public class UnoptimizedDeepCopy extends java.lang.ObjectUtility for making deep copies (vs. clone()'s shallow copies) of objects. Objects are first serialized and then deserialized. Error checking is fairly minimal in this implementation. If an object is encountered that cannot be serialized (or that references an object that cannot be serialized) an error is printed to System.err and null is returned. Depending on your specific application, it might make more sense to have copy(...) re-throw the exception. A later version of this class includes some minor optimizations.
- 
- 
Constructor SummaryConstructors Constructor Description UnoptimizedDeepCopy()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Objectcopy(java.lang.Object orig)Returns a copy of the object, or null if the object cannot be serialized.
 
-