| java.lang.Cloneable
All known Subclasses: java.text.Collator, java.awt.datatransfer.DataFlavor, java.awt.Point, sun.text.CompactIntArray, sun.security.util.DerInputBuffer, sun.awt.qt.QtGraphics, java.awt.GridBagConstraints, java.text.DigitList, java.util.jar.Attributes, java.util.TreeSet, java.util.LinkedList, java.awt.image.ImageFilter, java.awt.Insets, java.util.HashSet, java.util.Locale, components.ConstantObject, java.text.DateFormatSymbols, java.text.DecimalFormatSymbols, java.util.BitSet, sun.net.www.protocol.http.AuthenticationInfo, java.util.zip.ZipEntry, java.util.TreeMap, sun.security.x509.GeneralSubtrees, java.util.LinkedHashSet, java.text.Format, sun.security.provider.SHA5, java.util.jar.Manifest, java.awt.datatransfer.MimeType, sun.security.provider.SHA2, sun.security.provider.MD5, sun.text.CompactCharArray, java.util.IdentityHashMap, dependenceAnalyzer.MemberName, java.util.ArrayList, sun.security.provider.SHA, java.text.BreakIterator, sun.net.www.MimeEntry, java.awt.Rectangle, java.awt.Dimension, java.awt.datatransfer.MimeTypeParameterList, java.awt.ImageCapabilities, java.util.HashMap, java.text.CharSet, sun.text.Normalizer, sun.text.CompactByteArray,
Cloneable | public interface Cloneable (Code) | | 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.
author: unascribed version: 1.10, 02/02/00 See Also: java.lang.CloneNotSupportedException See Also: java.lang.Object.clone since: JDK1.0 |
|
|