Documentation  › java.lang  › Cloneable
 
 


  Cloneable
  public abstract interface

  Inherits From:   none
  Conforms To:   none
  Declared In:   java.lang


Interface Description
 
A class implements the Cloneable interface to indicate to the clone() 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 clone() for details on overriding this method.

Note that this interface does not 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.



Class Variables
 
None declared in this interface.


Instance Variables
 
None declared in this interface.


Constructors
 
None declared in this interface.


Class Methods
 
None declared in this interface.


Instance Methods
 
None declared in this interface.


Known Implementations
 
AbstractAction, AclEntry, AffineTransform, Area, ArrayList, Attribute, Attributes, Attributes, BitSet, BreakIterator, BufferCapabilities, BufferedImageFilter, Calendar, CertPathBuilderResult, CertPathParameters, CertPathValidatorResult, CertSelector, CertStoreParameters, CharacterIterator, Collator, CRLSelector, CubicCurve2D, DataFlavor, Date, DateFormatSymbols, DateTimeSyntax, DecimalFormatSymbols, DefaultFormatter, DefaultListSelectionModel, DefaultMutableTreeNode, DefaultTreeSelectionModel, Dimension2D, DocFlavor, EditorKit, ElementIterator, EnumSyntax, Format, GeneralPath, GlyphVector, GlyphView, GridBagConstraints, HashMap, HashSet, Hashtable, IdentityHashMap, ImageCapabilities, ImageFilter, Insets, IntegerSyntax, JobAttributes, Kernel, Line2D, LinkedHashSet, LinkedList, Locale, Manifest, MidiMessage, Name, PageAttributes, PageFormat, Paper, ParameterBlock, PKIXCertPathChecker, Point2D, QuadCurve2D, RectangularShape, Reference, RenderContext, RenderingHints, ResolutionSyntax, Segment, SetOfIntegerSyntax, SimpleAttributeSet, Size2DSyntax, TextLayout, TextMeasurer, TextSyntax, TimeZone, TreeMap, TreeSet, URISyntax, Vector, ZipEntry



 
 
  dydoc
  3/10/05