Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

java::lang::Cloneable Class Reference

A class implements the Cloneable interface to indicate to the method that it is legal for that method to make a field-for-field copy of instances of that class. More...

#include <java_lang_Cloneable.h>

Inheritance diagram for java::lang::Cloneable:

Inheritance graph
[legend]
Collaboration diagram for java::lang::Cloneable:

Collaboration graph
[legend]
List of all members.

Public Types

enum  {
  xmogDefaultFlags = xmog_base::GLOBAL, xmogMajorVersion = 3, xmogMinorVersion = 2, xmogPatchVersion = 9,
  xmogBuildNumber = 2047
}
typedef ::xmog_java_array_template<
::java::lang::Cloneable
array1D
typedef ::xmog_java_array_template<
::xmog_java_array_template<
::java::lang::Cloneable > > 
array2D

Detailed Description

A class implements the Cloneable interface to indicate to the method that it is legal for that method to make a field-for-field copy of instances of that class.

Invoking Object's clone method on an instance that does not implement the Cloneable interface results in the exception CloneNotSupportedException being thrown.

By convention, classes that implement this interface should override Object.clone (which is protected) with a public method. See for details on overriding this method.

Note that this interface does not</t> contain the clone method. Therefore, it is not possible to clone an object merely by virtue of the fact that it implements this interface. Even if the clone method is invoked reflectively, there is no guarantee that it will succeed.

Author:
unascribed


The documentation for this class was generated from the following file:
Generated on Fri Jun 16 10:19:23 2006 for JMS Courier for C++ by  doxygen 1.4.1