Interface Cloneable

All Superinterfaces:

public interface Cloneable
extends java.lang.Cloneable

Interface for cloneable classes. A cloneable class implements the standard Cloneable interface from J2SE and additionnaly overrides the Object.clone() method with public access. For some reason lost in the mists of time, the J2SE's Cloneable interface doesn't declare the clone() method, which make it hard to use. This Cloneable interface add this missing method, which avoid the need to cast an interface to its implementation in order to clone it.

See Also:
Cloneable, Cloneable doesn't define clone() on Sun's bug parade

Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.

Method Detail


java.lang.Object clone()
Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object.

A clone of this instance.
See Also: