|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cloneable
This interface provides a publicly available getClone()
method that
can be used to obtain a cloned version of the instance on which the
method was invoked.
This interface was added in order to bypass the current issues with
clone()
as provided with the JDK. The protected status of
Object.clone()
prevented some operations that were needed for CILib.
Another consideration was the problems associated with Object.clone()
as discussed by Joshua Bloch.
Method Summary | |
---|---|
Object |
getClone()
Create a cloned copy of the current object and return it. |
Method Detail |
---|
Object getClone()
Object.clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |