|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Copyable
Indicates that an object supports copying it's values and provides a public clone method.
| Field Summary | |
|---|---|
static int |
COPY_DEEP
Copy mode: Deep copy. |
static int |
COPY_FIRST_LEVEL
Copy mode: First level copy. |
static int |
COPY_SHALLOW
Copy mode: Shallow copy. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this. |
void |
copyFrom(java.lang.Object source,
int copyMode)
Copies the values of the source object to this object. |
| Field Detail |
|---|
static final int COPY_SHALLOW
static final int COPY_FIRST_LEVEL
static final int COPY_DEEP
| Method Detail |
|---|
void copyFrom(java.lang.Object source,
int copyMode)
throws java.lang.CloneNotSupportedException
source - The source object. Must be of the same type as this object.copyMode - Determines if a deep copy, a first level copy or a shallow copy is to be
performed. See the constants of the Copyable class.
java.lang.CloneNotSupportedException - If the cloning of one of the contained objects failed
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - If the cloning of one of the contained objects failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||