org.jscience.util
Interface Cloneable

All Superinterfaces:
java.lang.Cloneable

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

clone

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.

Returns:
A clone of this instance.
See Also:
Object.clone()