UniVista.support
Class CloneUtilities

java.lang.Object
  |
  +--UniVista.support.CloneUtilities

public class CloneUtilities
extends java.lang.Object

provides auxiliary cloning functions for performng deep clones on objects


Constructor Summary
CloneUtilities()
           
 
Method Summary
static java.util.Hashtable deepClone(java.util.Hashtable toClone)
          deep clones a hashtable
static java.lang.Object deepClone(java.lang.Object obj)
          deep clones an arbitrary object.
static java.util.Vector deepClone(java.util.Vector toClone)
          deep clones a vector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloneUtilities

public CloneUtilities()
Method Detail

deepClone

public static java.lang.Object deepClone(java.lang.Object obj)
deep clones an arbitrary object. It first checks to see if the object is a deep-cloneable container object and will try to deep-clone it. If not, it then checks to see if the object is regular cloneable and clones it. If not, it returns the same object reference

deepClone

public static java.util.Hashtable deepClone(java.util.Hashtable toClone)
deep clones a hashtable

deepClone

public static java.util.Vector deepClone(java.util.Vector toClone)
deep clones a vector