public interface DeepCloneable
extends java.lang.Cloneable
DeepCloneable is a cloneable object that can be cloned shallowly (by
creating a copy of the object that contains references to the same
members as the original) or deeply (by creating a copy of the object
and of all it's member objects).| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Create a shallow clone of the object.
|
java.lang.Object |
deepClone()
Create a deep clone of the object.
|
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - CloneNotSupportedExceptionjava.lang.Object deepClone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - CloneNotSupportedException