| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected CloneBase |
| CloneBase | back to summary |
|---|---|
| protected CloneBase() Change the permission of the no-arg constructor from public to protected. Otherwise package-private class's constructor is not really public. Changing this to 'protected' makes this constructor available to all subclasses regardless of the subclass's package. This in turn makes it possible to make all th subclasses of this CloneBase class serializable. | |
| clone | back to summary |
|---|---|
| protected CloneBase clone() Overrides java. Return a deep clone of this instance. Even if this instance has a parent, the returned clone will not. All JDOM core classes are Cloneable, and never throw CloneNotSupportedException. Additionally all Cloneable JDOM classes return the correct type of instance from this method and there is no need to cast the result (co-variant return value). Subclasses of this should still call super.clone() in their clone method.
| |