- All Superinterfaces:
Cloneable
public interface Clonable extends Cloneable
Provide the
Object.clone()
method to interfaces!-
Method Summary
Modifier and Type Method Description Object
clone()
Makes theObject
'sObject.clone()
method available to this interface.
-
Method Details
-
clone
Makes theObject
'sObject.clone()
method available to this interface.- Returns:
- The cloned instance.
- Throws:
CloneNotSupportedException
- Thrown to indicate that theclone
method in classObject
has been called to clone an object, but that the object's class does not implement theCloneable
interface.
-