gishur.core
Interface Cloneable

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
ControlledCloneable, Shape, TypeFormat
All Known Implementing Classes:
ConsumableEvent, AffineTransformation, AffineTransformation, XObject, XPolyline, Skeleton, SkEdge, XObject, AffineTransformation

public interface Cloneable
extends java.lang.Cloneable

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

Version:
1.0
Author:
Thomas Wolf

Method Summary
 java.lang.Object clone()
          Creates a new object of the same class as this object.
 

Method Detail

clone

public java.lang.Object clone()
Creates a new object of the same class as this object. It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No constructor is called. In some Implementations, the fields are cloned, if possible (deep clone).
Overrides:
clone in class java.lang.Object
Returns:
a clone of this object.