Interface CloneableEx

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
Box, Camera, Ellipsoid, Light, Plane, Polygon, Scene, Shape, Sphere, SurfaceProperties

public interface CloneableEx
extends java.lang.Cloneable

An interface to support cloning with generics. Since the Cloneable interface doesn't expose the clone method, and clone is a protected method of Object we can use this interface to enforce the cloneability constraint on generic types. Whether this copy is deep or shallow is up to the user, just as with the Cloneable interface.


Method Summary
 java.lang.Object clone()
          Returns a copy of the object.
 

Method Detail

clone

java.lang.Object clone()
Returns a copy of the object.

Returns:
A copy of the object.