-
- All Superinterfaces:
Cloneable
public interface Clonable extends Cloneable
Provide theObject.clone()
method to interfaces!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
clone()
Makes theObject
'sObject.clone()
method available to this interface.
-
-
-
Method Detail
-
clone
Object clone() throws CloneNotSupportedException
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.
-
-