|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The type of the final class which should be cloneable.public interface CompulsaryCloneable<T>
Interface ensuring implementation of the clone() function of implementing classes. Also a type-safe cloning function, safeClone(), will be made available. When implementing this interface, recommended is to implement the type-safe version and let clone() call and return the result of safeClone().
Method Summary | |
---|---|
java.lang.Object |
clone()
Makes the clone method public. |
T |
safeClone()
Type-safe cloning method. |
Method Detail |
---|
java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
T safeClone()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |