Package net.didion.jwnl.util
Interface DeepCloneable
-
- All Superinterfaces:
java.lang.Cloneable
- All Known Subinterfaces:
Node
- All Known Implementing Classes:
PointerTargetNode,PointerTargetNodeList,PointerTargetTreeNode,PointerTargetTreeNodeList,RelationshipList,TypeCheckingList
public interface DeepCloneable extends java.lang.CloneableADeepCloneableis 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).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectclone()Create a shallow clone of the objectjava.lang.ObjectdeepClone()Create a deep clone of the object
-
-
-
Method Detail
-
clone
java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCreate a shallow clone of the object- Throws:
java.lang.CloneNotSupportedException
-
deepClone
java.lang.Object deepClone() throws java.lang.UnsupportedOperationExceptionCreate a deep clone of the object- Throws:
java.lang.UnsupportedOperationException
-
-