This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.lang
interface Cloneable

All Known Subinterfaces:
AclEntry, CertPathBuilderResult, CertPathParameters, CertPathValidatorResult, CertSelector, CertStoreParameters, CharacterIterator, CRLSelector, Descriptor, GSSCredential, AttributedCharacterIterator
All Known Implementing Classes:
AbstractAction, BasicDesktopPaneUI.CloseAction, BasicDesktopPaneUI.MaximizeAction, BasicDesktopPaneUI.MinimizeAction, BasicDesktopPaneUI.NavigateAction, BasicDesktopPaneUI.OpenAction, BasicFileChooserUI.ApproveSelectionAction, BasicFileChooserUI.CancelSelectionAction, BasicFileChooserUI.ChangeToParentDirectoryAction, BasicFileChooserUI.GoHomeAction, BasicFileChooserUI.NewFolderAction, BasicFileChooserUI.UpdateAction, BasicInternalFrameTitlePane.CloseAction, BasicInternalFrameTitlePane.IconifyAction, BasicInternalFrameTitlePane.MaximizeAction, BasicInternalFrameTitlePane.MoveAction, BasicInternalFrameTitlePane.RestoreAction, BasicInternalFrameTitlePane.SizeAction, BasicSliderUI.ActionScroller, BasicTreeUI.TreeCancelEditingAction, BasicTreeUI.TreeHomeAction, BasicTreeUI.TreeIncrementAction, BasicTreeUI.TreePageAction, BasicTreeUI.TreeToggleAction, BasicTreeUI.TreeTraverseAction, MetalFileChooserUI.DirectoryComboBoxAction, TextAction, DefaultEditorKit.BeepAction, DefaultEditorKit.CopyAction, DefaultEditorKit.CutAction, DefaultEditorKit.DefaultKeyTypedAction, DefaultEditorKit.InsertBreakAction, DefaultEditorKit.InsertContentAction, DefaultEditorKit.InsertTabAction, DefaultEditorKit.PasteAction, StyledEditorKit.StyledTextAction, HTMLEditorKit.HTMLTextAction, StyledEditorKit.AlignmentAction, StyledEditorKit.BoldAction, StyledEditorKit.FontFamilyAction, StyledEditorKit.FontSizeAction, StyledEditorKit.ForegroundAction, StyledEditorKit.ItalicAction, StyledEditorKit.UnderlineAction, HTMLEditorKit.InsertHTMLTextAction, AffineTransform, Area, ArrayDeque, ArrayList, AttributeList, RoleList, RoleUnresolvedList, Attributes, BaseRowSet, BitSet, BreakIterator, BufferCapabilities, BufferedImageFilter, Calendar, GregorianCalendar, Collator, RuleBasedCollator, ConcurrentSkipListMap, ConcurrentSkipListSet, CopyOnWriteArrayList, CubicCurve2D, CubicCurve2D.Double, CubicCurve2D.Float, DataFlavor, Date, Date, Time, Timestamp, DateFormatSymbols, DateTimeSyntax, DateTimeAtCompleted, DateTimeAtCreation, DateTimeAtProcessing, JobHoldUntil, DecimalFormatSymbols, DefaultFormatter, InternationalFormatter, MaskFormatter, DateFormatter, NumberFormatter, DefaultListSelectionModel, DefaultMutableTreeNode, JTree.DynamicUtilTreeNode, DefaultTreeSelectionModel, JTree.EmptySelectionModel, Dimension2D, Dimension, DimensionUIResource, DocFlavor, DocFlavor.BYTE_ARRAY, DocFlavor.CHAR_ARRAY, DocFlavor.INPUT_STREAM, DocFlavor.READER, DocFlavor.SERVICE_FORMATTED, DocFlavor.STRING, DocFlavor.URL, EditorKit, DefaultEditorKit, StyledEditorKit, HTMLEditorKit, RTFEditorKit, ElementIterator, EnumMap, EnumSet, EnumSyntax, Chromaticity, ColorSupported, Compression, Fidelity, Finishings, JobSheets, JobState, JobStateReason, Media, MultipleDocumentHandling, OrientationRequested, PDLOverrideSupported, PresentationDirection, PrinterIsAcceptingJobs, PrinterState, PrinterStateReason, PrintQuality, ReferenceUriSchemesSupported, Severity, SheetCollate, Sides, MediaName, MediaSizeName, MediaTray, Format, DateFormat, MessageFormat, NumberFormat, SimpleDateFormat, ChoiceFormat, DecimalFormat, GlyphVector, GlyphView, LabelView, InlineView, GridBagConstraints, HashMap, LinkedHashMap, PrinterStateReasons, HashSet, JobStateReasons, LinkedHashSet, Hashtable, Properties, UIDefaults, Provider, AuthProvider, HttpCookie, IdentityHashMap, ImageCapabilities, ImageFilter, CropImageFilter, ReplicateScaleFilter, RGBImageFilter, AreaAveragingScaleFilter, GrayFilter, Insets, InsetsUIResource, IntegerSyntax, Copies, JobImpressions, JobImpressionsCompleted, JobKOctets, JobKOctetsProcessed, JobMediaSheets, JobMediaSheetsCompleted, JobPriority, JobPrioritySupported, NumberOfDocuments, NumberOfInterveningJobs, NumberUp, PagesPerMinute, PagesPerMinuteColor, QueuedJobCount, JobAttributes, Kernel, Line2D, Line2D.Double, Line2D.Float, LinkedHashSet, LinkedList, Locale, Mac, Manifest, MBeanAttributeInfo, ModelMBeanAttributeInfo, OpenMBeanAttributeInfoSupport, MBeanConstructorInfo, ModelMBeanConstructorInfo, OpenMBeanConstructorInfoSupport, MBeanInfo, ModelMBeanInfoSupport, OpenMBeanInfoSupport, MBeanNotificationInfo, ModelMBeanNotificationInfo, MBeanOperationInfo, ModelMBeanOperationInfo, OpenMBeanOperationInfoSupport, MBeanParameterInfo, OpenMBeanParameterInfoSupport, MidiMessage, MetaMessage, ShortMessage, SysexMessage, PageAttributes, PageFormat, Paper, ParameterBlock, Path2D, Path2D.Double, Path2D.Float, GeneralPath, PKIXCertPathChecker, Point2D, Point, Point2D.Double, Point2D.Float, QuadCurve2D, QuadCurve2D.Double, QuadCurve2D.Float, RectangularShape, Arc2D, Ellipse2D, Rectangle2D, RoundRectangle2D, Arc2D.Double, Arc2D.Float, Ellipse2D.Double, Ellipse2D.Float, Rectangle, Rectangle2D.Double, Rectangle2D.Float, RoundRectangle2D.Double, RoundRectangle2D.Float, DefaultCaret, BasicTextUI.BasicCaret, Reference, LinkRef, RenderContext, RenderingHints, ResolutionSyntax, PrinterResolution, Segment, SerialArray, SerialBlob, SerialClob, SerialDatalink, SerialJavaObject, SerialRef, SerialStruct, SetOfIntegerSyntax, CopiesSupported, JobImpressionsSupported, JobKOctetsSupported, JobMediaSheetsSupported, NumberUpSupported, PageRanges, SimpleAttributeSet, Size2DSyntax, MediaSize, TabularDataSupport, TextLayout, TextMeasurer, TextSyntax, DocumentName, JobMessageFromOperator, JobName, JobOriginatingUserName, OutputDeviceAssigned, PrinterInfo, PrinterLocation, PrinterMakeAndModel, PrinterMessageFromOperator, PrinterName, RequestingUserName, TimeZone, SimpleTimeZone, TreeMap, TreeSet, URISyntax, Destination, PrinterMoreInfo, PrinterMoreInfoManufacturer, PrinterURI, Vector, Stack, XMLGregorianCalendar, ZipEntry, JarEntry

public interface Cloneable

A class implements the Cloneable interface to indicate to the {@link java.lang.Object#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 {@link java.lang.Object#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.




This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.