public interface Cloneable
extends java.lang.Cloneable
Cloneable
extension to define the
java.lang.Cloneable#clone()
as a public method.Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a copy of the object.
|
static java.lang.Object |
cloneQuietly(Cloneable x) |
static java.lang.Object |
cloneQuietly(java.lang.Object x) |
static java.lang.Object cloneQuietly(java.lang.Object x)
static java.lang.Object cloneQuietly(Cloneable x)
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if the instance of the object cannot
be cloned. As this is extending Cloneable
so its sure
it implements it, so this exception may be used for problems on specific
object instances.Object#clone()}.