ahc.util
Interface ReallyCloneable
- All Superinterfaces:
- java.lang.Cloneable
- public interface ReallyCloneable
- extends java.lang.Cloneable
This interface is what the Cloneable interface should really be like:
- It declares clone to be public so that it can be used polymorphically (i.e., you can try to cast any
object to ReallyCloneable and then call the clone method on it)
- It declares clone without the CloneNotSupportedException - after all, a class implements this interface
for the specific reason of supporting a clone operation.
- Author:
- Arno Haase
Method Summary |
java.lang.Object |
clone()
|
clone
public java.lang.Object clone()