Save This Page
Home » openjdk-7 » java » lang » [javadoc | source]
java.lang
public interface: Cloneable [javadoc | source]

All Known Implementing Classes:
    JobMessageFromOperator, EnumSet, HTMLEditorKit, BeginLineAction, CharacterIterator, ModelMBeanOperationInfo, NextWordAction, Double, Size2DSyntax, JobPriority, TreeMap, AreaAveragingScaleFilter, DeleteWordAction, RuleBasedBreakIterator, PrinterMakeAndModel, PreviousWordAction, Arc2D, JobName, ActionScroller, ReplicateScaleFilter, CompositeName, BasicDefaults, DeletePrevCharAction, PrinterMoreInfo, AlignmentAction, NextVisualPositionAction, CertPathBuilderResult, FontFamilyAction, TextMeasurer, ArrayList, InsetsUIResource, Kernel, ComposedTextCaret, Double, SafeCharIterator, JobKOctetsProcessed, MBeanInfo, MimeType, StyledTextAction, FontSizeAction, PlainEditorKit, EnumMap, DateFormatSymbols, DefaultBufferCapabilities, EndParagraphAction, CopyAction, JarEntry, ProcessEnvironment, JobAttributes, Segment, PageAttributes, ModelMBeanNotificationInfo, CertStoreParameters, SimpleTimeZone, ArrowButtonHandler, CancelSelectionAction, ElementIterator, Attribute, NewFolderAction, TreePageAction, SerialClob, MBeanNotificationInfo, MBeanOperationInfo, Calendar, TreeIncrementAction, CloseAction, Point2D, PagesPerMinuteColor, Provider, MidiMessage, DefaultListSelectionModel, PlainEditorKit, NavigateLinkAction, PrinterMoreInfoManufacturer, PrinterURI, CharArrayIterator, OpenAction, Copies, PrinterStateReasons, RuleBasedCollator, Float, BeginAction, Insets, BufferCapabilities, ModelMBeanInfoSupport, Rectangle, NumberUp, IdentityHashMap, Collator, CRLSelector, TaggedAttributeSet, NumberFormat, PKIXCertPathBuilderResult, NotifyAction, LinkedHashSet, DateFormat, InsertTabAction, DefaultCaret, BoldAction, BasicEditorKit, NumberOfDocuments, ItalicAction, TextSyntax, ModelMBeanConstructorInfo, Time, CropImageFilter, PrinterIsAcceptingJobs, Point, IncrementAction, OpenMBeanOperationInfoSupport, SimpleAttributeSet, BeginAction, RoundRectangle2D, CHAR_ARRAY, MetaMessage, Properties, Name, ModelMBeanAttributeInfo, CharacterIterator, DictionaryBasedBreakIterator, Dimension, PKIXBuilderParameters, OceanToolBarImageFilter, JobKOctetsSupported, DateTimeAtProcessing, JobSheets, Mac, PresentationDirection, PrinterStateReason, AttributedSegment, MediaName, Line2D, DirectoryComboBoxAction, JobStateReason, ChoiceFormat, TextAction, LinkVector, ConcurrentSkipListMap, InternationalFormatter, TreeHomeAction, SysexMessage, ListAction, X509CRLSelector, DefaultFormatter, GlyphView, FHTreeStateNode, RoleUnresolvedList, JobMediaSheets, PrintQuality, InsertContentAction, NumberUpSupported, Finishings, AuthProvider, MBeanConstructorInfo, GrayFilter, NumberOfInterveningJobs, LinkedList, JobStateReasons, TabularDataSupport, IndexedSegment, DateFormatter, IndexedSegment, ArrayDeque, Dimension2D, DescriptorSupport, VerticalPageAction, Attributes, OrientationRequested, GregorianCalendar, BasicAttribute, EmptySelectionModel, ImmutableDescriptor, Descriptor, Double, BitSet, ImageCapabilities, Paper, SizeAction, Double, SerialDatalink, Area, DateEditorFormatter, StringCharacterIterator, SelectParagraphAction, Rectangle2D, IntegerSyntax, Double, OutputDeviceAssigned, PageAction, Locale, LinkRef, PrinterState, PrinterName, Severity, PKIXCertPathValidatorResult, ColorSupported, URL, CachedSegment, InsertBreakAction, CertSelector, RoleList, MaximizeAction, DigraphNode, CloseAction, GeneralPath, STRING, DataFlavor, Path2D, MBeanAttributeInfo, ConcurrentSkipListSet, TreeTraverseAction, ActivateLinkAction, SharedActionScroller, TreeCancelEditingAction, SerialJavaObject, ImageFilter, AbstractAction, RGBImageFilter, DefaultEditorKit, CloneableProperty, EnumSyntax, JobKOctets, Double, TreeSet, Float, MediaSize, QuadCurve2D, Vector, DeleteNextCharAction, DecimalFormatSymbols, Destination, UpdateAction, Float, GridBagConstraints, CubicCurve2D, Float, HashMap, DateTimeSyntax, GlyphVector, MimeTypeParameterList, DConnector, TimeZone, Float, DebugGraphicsFilter, RectangularShape, DocFlavor, Media, Float, XMLGregorianCalendar, JobPrioritySupported, Float, AttributeList, NoneProvider, EndWordAction, NumberEditorFormatter, DateTimeAtCreation, HashSet, Attributes, Float, WhitespaceBasedBreakIterator, EndAction, CopyOnWriteArrayList, Fidelity, Manifest, PagesPerMinute, PasteAction, JobImpressionsCompleted, BufferedImageFilter, PKIXCertPathChecker, UnselectAction, CopiesSupported, EndLineAction, PrinterResolution, AffineTransform, Chromaticity, Compression, HttpCookie, FocusAction, MultiUIDefaults, LargeConversionSet, TreeToggleAction, CertPathParameters, CloseAction, X509CertSelector, CacheKey, ZipEntry, IconifyAction, AttributedStringIterator, DecimalFormat, PDLOverrideSupported, StackItem, GoHomeAction, DumpModelAction, DimensionUIResource, JobMediaSheetsCompleted, Sides, PKIXParameters, DefaultAction, Date, PrinterLocation, BRView, TreeStateNode, URISyntax, Double, DigitList, OpenMBeanConstructorInfoSupport, MaximizeAction, SelectWordAction, INPUT_STREAM, SetOfIntegerSyntax, QueuedJobCount, AudioAction, Timestamp, MultiUIDefaults, NumberFormatter, RequestingUserName, WritableAction, BYTE_ARRAY, DynamicUtilTreeNode, SelectLineAction, OpenMBeanInfoSupport, Float, LDAPCertStoreParameters, AttributedCharacterIterator, DialogTypeSelection, JobHoldUntil, MediaSizeName, MaskFormatter, MoveAction, ArrayTable, RenderingHints, SerialArray, AttributedStringIterator, ShortMessage, BeepAction, DocumentName, ReadOnlyAction, DefaultKeyTypedAction, NavigateAction, SubMap, MessageFormat, JobOriginatingUserName, RenderContext, PageFormat, OpenMBeanParameterInfoSupport, Hashtable, BaseRowSet, JobImpressionsSupported, BreakIterator, ActionListenerProxy, Format, EditorKit, TextActionWrapper, OceanDisabledButtonImageFilter, RTFEditorKit, READER, AclEntry, ParsedSynthStyle, SERVICE_FORMATTED, SerialStruct, ResolutionSyntax, UIDefaults, TextLayout, ParameterBlock, CommitAction, LabelView, InlineView, DefaultTreeSelectionModel, JumboEnumSet, MinimizeAction, BasicCaret, RestoreAction, SheetCollate, IconifyAction, MBeanParameterInfo, JobState, PageRanges, MediaTray, CertPathValidatorResult, ToggleComponentOrientationAction, MimeType, Double, JobMediaSheetsSupported, CompoundName, CutAction, Double, BeginWordAction, LdapName, ImmutableEndOfTrack, Date, SelectAllAction, PrinterInfo, ReferenceUriSchemesSupported, DefaultMutableTreeNode, JobImpressions, ActivationDataFlavor, ImageLabelView, LinkedHashMap, JarFileEntry, MaximizeAction, OpenMBeanAttributeInfoSupport, CollectionCertStoreParameters, ApproveSelectionAction, Reference, UnderlineAction, ChangeToParentDirectoryAction, DateTimeAtCompleted, Stack, ForegroundAction, BasicAttributes, SerialBlob, BeginParagraphAction, SimpleDateFormat, StyledInsertBreakAction, Ellipse2D, RestoreAction, RegularEnumSet, PrinterMessageFromOperator, StyledEditorKit, MultipleDocumentHandling, ShowSystemMenuAction, CancelAction, JapaneseImperialCalendar, SerialRef

A class implements the Cloneable interface to indicate to the 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 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.