Package gov.nih.mipav.model.structures
Class ModelSerialCloneable
- java.lang.Object
-
- gov.nih.mipav.model.structures.ModelSerialCloneable
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
ColorIcon,FileDicomKey,FileDicomSQ,FileDicomTag,FileDicomTagInfo,FileInfoBase,FileMincAttElem,FileMincDimElem,FileMincVarElem,MatrixHolder,ModelSimpleImage,ModelStorageBase,ProvenanceEntry,TransferFunction,VOI
public class ModelSerialCloneable extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableThis class clones (copies) by serializing the object (providing it can be serialized).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUIDUse serialVersionUID for interoperability.
-
Constructor Summary
Constructors Constructor Description ModelSerialCloneable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Copies the object that extends this class through use of Serialization.java.lang.ObjectnativeClone()Does not use serialization for cloning, exists for performance comparison and shallow copies.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public java.lang.Object clone()
Copies the object that extends this class through use of Serialization.- Overrides:
clonein classjava.lang.Object- Returns:
- The cloned object. Null if there was an error.
-
nativeClone
public java.lang.Object nativeClone()
Does not use serialization for cloning, exists for performance comparison and shallow copies.- Throws:
java.lang.CloneNotSupportedException
-
-