net.sf.extjwnl.util
Interface DeepCloneable

All Superinterfaces:
Cloneable
All Known Subinterfaces:
Node
All Known Implementing Classes:
PointerTargetNode, PointerTargetNodeList, PointerTargetTreeNode, PointerTargetTreeNodeList

public interface DeepCloneable
extends Cloneable

A 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).

Author:
John Didion , Aliaksandr Autayeu

Method Summary
 Object clone()
          Create a shallow clone of the object.
 Object deepClone()
          Create a deep clone of the object.
 

Method Detail

clone

Object clone()
             throws CloneNotSupportedException
Create a shallow clone of the object.

Throws:
CloneNotSupportedException - CloneNotSupportedException

deepClone

Object deepClone()
                 throws CloneNotSupportedException
Create a deep clone of the object.

Returns:
a deep clone of the object
Throws:
CloneNotSupportedException - CloneNotSupportedException


Copyright © 2011. All Rights Reserved.